SQL Server 2005客户端安装和端口设置 版本:sql server 2005 exepress edition SQLEXPR_CHS.EXE 57.4MB 下载地址: http://www.microsoft.com/downloads/details.aspx?FamilyID=220549b5-0b07-4448-8848-dcc397514b41&displaylang=zh-cn安装完客户端软件后,就可以驱动程序中的ADODB程序。连接数据库字符串有两个方式:一种sql服务器端默认端口,二是sql服务器端更改了端口如4000.
1、默认端口 SQL Server的默认TCP端口是1433,UDP端口是1434。2005连接字符串为 Provider=SQLNCLI.1;Persist Security Info=True;User ID=****;Password=**;Initial Catalog=tablename;Data Source=202.000.000.000.
2、更改端口为:3533 如果服务器的TCP端口更改为其他的端口,那么在客户端的配置工具中需要做如下的设置: 程序->Microsoft sql server 2005 ->配置工具->sql server configration manage ,如下图:
IP2中的地址设置为客户端的IP地址,端口更改为服务器端SQL SERVER开发的端口。
Provider=SQLNCLI.1;Persist Security Info=True;User ID=****;Password=**;Initial Catalog=tablename;Data Source=202.000.000.000,3533. |
|