SQL Server 2005 Express JDBC Connection

SQL Server 2005 Express JDBC Connection

1 驱动程序:

微软官方驱动:

http://www.microsoft.com/downloads/details.aspx?FamilyID=6d483869-816a-44cb-9787-a866235efc7c&DisplayLang=en

 

2 连接

设置 SQL Service的服务引擎和客户端均开启TCP/IP连接,通常TCP端口为1433默认。注意IP All的端口设置也须设置为1433,否则会出现 Connection Refused错误。

 

3 设置认证方式。

SQL EXPRESS Management Studio中好像无法修改认证方式,可以直接修改注册表

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Mi crosoft SQL Server\MSSQL.1\MSSQLServer LoginMode

1 为Windows Only

2 Mixed

 

否则,如果为1,出现user not associated with a trusted sql server connection

你可能感兴趣的:(SQL Server 2005 Express JDBC Connection)