铁手剑谱

上善若水
数据加载中……
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

posted on 2008-01-28 14:01 铁手 阅读(1210) 评论(1)  编辑  收藏

评论

# re: SQL Server 2005 Express JDBC Connection 2008-11-21 17:10 Jerry Hong

Thanks for your help, I just begin to learn java a week ago, and hope to be more deep in J2EE.
  回复  更多评论    

只有注册用户登录后才能发表评论。


网站导航: