strCN="Driver={SQL Server};Server=服务器名;DataBase=数据库;UID=用户;PWD=口令;" eg:SQL服务器名为 WEBSVR,数据库名为WebMis(在SQL Enterprise Manager中查看到),用户sa,口令123,则以上为: dim cn as adodb.connection set cn =new adodb.connection dim strCn as string strCN="Driver={SQL Server};Server=WEBSVR;DataBase=WebMis;UID=sa;PWD=123;" cn.open strCN
PWD=XXX(你实际的密码)
就可以了
strCN="Driver={SQL Server};Server=服务器名;DataBase=数据库;UID=用户;PWD=口令;"
eg:SQL服务器名为 WEBSVR,数据库名为WebMis(在SQL Enterprise Manager中查看到),用户sa,口令123,则以上为:
dim cn as adodb.connection
set cn =new adodb.connection
dim strCn as string
strCN="Driver={SQL Server};Server=WEBSVR;DataBase=WebMis;UID=sa;PWD=123;"
cn.open strCN