asp怎么连接sql2000.
1个回答
展开全部
Dim StrServer,StrUid,StrSaPwd,StrDbName
StrServer="61.139.126.70"
StrUid="sa"
StrSaPwd="123456"
StrDbName="db"
Dim Conn
Dim StrDSN
StrDSN="driver={SQL server};server="&StrServer&";uid="&StrUid&";pwd="&StrSaPwd&";database="&StrDbName
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open StrDSN
StrServer="61.139.126.70"
StrUid="sa"
StrSaPwd="123456"
StrDbName="db"
Dim Conn
Dim StrDSN
StrDSN="driver={SQL server};server="&StrServer&";uid="&StrUid&";pwd="&StrSaPwd&";database="&StrDbName
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open StrDSN
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询