- ------------------------------
- Set oConn = Server.CreateObject("ADODB.Connection")
- sConn = "Driver={SQL Server};
- Server=服务器地址,1455;Database=数据库;
- UID=用户名;PWD=密码;"
- oConn.Open sConn
- Response.Write oConn
- -------------------------------
- 输出结果为:
- -------------------------------
- Provider=MSDASQL.1;Extended Properties="DRIVER=SQL Server;
- SERVER=服务器地址,1455;UID=用户名;PWD=密码;
- APP=Internet Information Services;WSID=**;DATABASE=数据库"
复制代码 |