Eclipse Data Tools Platform (DTP) 連線SQL Server 2008
關鍵配置
1. 下載安裝sqljdbc_4.0到C:Program FilesMicrosoft JDBC Driver 4.0 for SQL Server.
2. 或者在DTP的New Database Connections時Edit Driver Definition的JAR List中Add 安裝路徑:到C:Program FilesMicrosoft JDBC Driver 4.0 for SQL Serversqljdbc_4.0enusqljdbc4.jar;
或者在環境變數中新增CLASSPATH,值:C:Program FilesMicrosoft JDBC Driver 4.0 for SQL Serversqljdbc_4.0enusqljdbc4.jar
此時,可以配置sql server 使用者名稱/密碼方式連線。
3. 把sqljdbc_auth.dll從jdbc目錄中複製到system32目錄和JAVAHOME目錄C:Program FilesJavajre6bin
現在,可以用整合賬戶連線SQL Server。
詳細資訊:
The JDBC driver supports the use of Type 2 integrated authentication on Windows operating systems through the integratedSecurity connection string property. To use integrated authentication, copy the sqljdbc_auth.dll file to a directory on the Windows system path on the computer where the JDBC driver is installed.
The sqljdbc_auth.dll files are installed in the following location:
<installation directory>sqljdbc_<version><language>auth
Note:
If you are running a 32-bit Java Virtual Machine (JVM), use the sqljdbc_auth.dll file in the x86 folder, even if the operating system is the x64 version. If you are running a 64-bit JVM on a x64 processor, use the sqljdbc_auth.dll file in the x64 folder. If you are running a 64-bit JVM on a IA-64 processor, use the sqljdbc_auth.dll file in the IA64 folder.
Alternatively you can set the java.libary.path system property to specify the directory of the sqljdbc_auth.dll. For example, if the JDBC driver is installed in the default directory, you can specify the location of the DLL by using the following virtual machine (VM) argument when the Java application is started:
-Djava.library.path=C:Microsoft SQL Server 2005 JDBC Driversqljdbc_<version>enuauthx86
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/66009/viewspace-1058309/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 在Eclipse中用JDBC連線Sql ServerEclipseJDBCSQLServer
- 巧用JDBC連線SQL SERVER 2008JDBCSQLServer
- sql server2008連線不上SQLServer
- SQL Server連線SQL Server、SQL Server連線ORACLE 連結伺服器SQLServerOracle伺服器
- SQL Server 2008連線字串寫法大全SQLServer字串
- asp連線sql server 2008資料庫SQLServer資料庫
- Oracle 11g的SQL Developer連線SQL Server 2008OracleSQLDeveloperServer
- 連線SQL ServerSQLServer
- SQL Deverlop連線SQL ServerSQLdevServer
- SQL SERVER 自連線、外連線SQLServer
- 淺談Netbeans 6.5連線SQL Server 2008方法BeanSQLServer
- .NET連線SQL ServerSQLServer
- 快速搞定在Eclipse中用JDBC連線SQL Server 2005EclipseJDBCSQLServer
- 在Eclipse中用JDBC連線Sql Server 2005總結EclipseJDBCSQLServer
- SQL Server 2008連線區域網內的SQL Server 2000資料庫SQLServer資料庫
- SQL Server linked server 連線OracleSQLServerOracle
- Perl 連線 SQL Server (轉)SQLServer
- 遠端連線SQL ServerSQLServer
- 淺析SQL Server 2008的Change Data Capture功能SQLServerAPT
- NavicatPremium 連線SQL Server 、MySQL等REMServerMySql
- SQL Server連線不上原因SQLServer
- 建立SQL Server 2008的效能基線SQLServer
- python 怎麼連線 sql server,不是連線 mysqlPythonServerMySql
- 雲伺服器SQL Server 2008 允許遠端連線的配置伺服器SQLServer
- 利用Ring Buffer在SQL Server 2008中進行連線故障排除SQLServer
- Windows 下 Laravel 7.0 連線 sql serverWindowsLaravelSQLServer
- Sql Server系列:多表連線查詢SQLServer
- PowerShell連線 SQL Server 2005SQLServer
- 連線SQL SERVER的公共類 (轉)SQLServer
- SQL Server中內連線和外連線的區別SQLServer
- 如何使用Linked Server連線Oracle與SQL ServerServerOracleSQL
- c#連線SQL Server資料庫C#SQLServer資料庫
- sql server連線排序衝突處理SQLServer排序
- SQL server資料庫連線不上SQLServer資料庫
- JSP連線SQL Server資料庫JSSQLServer資料庫
- 請問JDON下 如何連線SQL SERVER???SQLServer
- SQL Server 連線基礎知識(轉)SQLServer
- 轉載-64位SQL Server 2008的Linked Server連線64位的Oracle--Oracle Provider for OLEDBSQLServerOracleIDE