不通过dsn访问sqlserver_PHP教程
时间:2021-07-01 10:21:17
帮助过:19人阅读
在连接字符串里加上服务器和数据库驱动程序就可以了
Example:
dim conn
set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString = "driver={SQL Server};"server=yourserver;uid=sa;pwd=pwd;database=pubs"
conn.open
Set cmd= Server.CreateObject("ADODB.Command")
Set cmd.ActiveConnection = conn
http://www.bkjia.com/PHPjc/631167.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/631167.htmlTechArticle在连接字符串里加上服务器和数据库驱动程序就可以了 Example: dim conn set conn = Server.CreateObject(ADODB.Connection) conn.ConnectionString = driver={SQL Serve...