asp连接SQL服务器问题,先感谢一下
if not isobject(conn) thendim conn
dim dbpath
DBPath = Server.MapPath(filedata)
on error resume next
set conn=server.createobject("adodb.connection")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
end if
我想改成连接SQL数据库的代码,麻烦谁告诉我一下,怎么改,谢谢哈 dim connstr
set Conn = server.CreateObject("ADODB.Connection")
connstr="driver={SQL Server}; server=(local);database=xxxx;uid=xxxxxxxx;pwd=xxxxxxxxxx"
conn.Open connstr Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]无法打开登录 'qwertyuiop_Data.MDF' 中请求的数据库。登录失败。
/qwer/conn.asp,行 7
加了还提示这个啊晕 数据源
页:
[1]
