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,问题所在:
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.SQLServerDialect
4,user表在mssq是系统所有,老是出现Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]在关键字 'user' 附近有语法错误
posted on 2007-04-28 23:27
NG 阅读(468)
评论(0) 编辑 收藏