'*********************************************************' 目的: 数据库连接'*********************************************************Function OpenConnect()ConnStr = "Provider = Sqloledb; User ID = " & SqlUsername & "; Password = " & SqlPassword & "; Initial Catalog = " & SqlDatabaseName & "; Data Source = " & SqlLocalName & ";"Set objConn = Server.CreateObject("ADODB.Connection")objConn.Open ConnStrOpenConnect=TrueEnd Function'*********************************************************请问这是连接什么数据库的啊?怎么看不出来呢?
2 回答
慕妹3146593
TA贡献1820条经验 获得超9个赞
ConnStr = "Provider = Sqloledb; User ID = " & SqlUsername & "; Password = " & SqlPassword & "; Initial Catalog = " & SqlDatabaseName & "; Data Source = " & SqlLocalName & ";"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open ConnStr
Provider = Sqloledb;区别是什么数据库看这里,Provider =后面就是数据库类型
这个是SQL Server 的,
添加回答
举报
0/150
提交
取消