『壹』 myeclipse連接sql server 2000出錯
驅動?sp4補丁?
『貳』 sql2000上,無法使用"點"或是"localhost"鏈接
localhost 使用的資料庫是默認的資料庫實例「計算機名」,你用它連接自己建的資料庫實例「計算機名/實例名」,當然連不上了。
# SQLServer2000
hibernate.dialect org.hibernate.dialect.SQLServerDialect
hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
hibernate.connection.url jdbc:jtds:sqlserver://localhost:1433/cute
hibernate.connection.username sa
hibernate.connection.password root
上面是在eclipse中的配置
jdbc:jtds:sqlserver://MyServerName\MyInstanceName:1433/資料庫名
如果用localhost,則是你連接的資料庫伺服器是「計算機名」,也就是安裝時默認創建的實例。用這句
jdbc:jtds:sqlserver://localhost:1433/資料庫名