1,三個jar包:msutil.jar/mssqlserver.jar/msbase.jar
2,jdbc.property
1 jdbc.driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver
2 jdbc.url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=myAuto
3 jdbc.username=root
4 jdbc.password=root
3,問題所在:
2 jdbc.url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=myAuto
3 jdbc.username=root
4 jdbc.password=root
1 hibernate.dialect=org.hibernate.dialect.SQLServerDialect
2 hibernate.show_sql=false
3 hibernate.cache.use_query_cache=true
4 hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
hibernate2的是hibernate.dialect=net.sf.hibernate.dialect.SQLServerDialect2 hibernate.show_sql=false
3 hibernate.cache.use_query_cache=true
4 hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
4,user表在mssq是系統所有,老是出現Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]在關鍵字 'user' 附近有語法錯誤