[web开发]通过asp连接sql server数据库

http://community.csdn.net/Expert/topic/4712/4712469.xml?temp=5.433291E-02

asp连接sql server数据库的字符串为以下两种格式(其中的空格也是必须的):
"Provider=SQLOLEDB;data source=machinename;initial catalog=dbname;uid=sa;pwd=pass;"

"DRIVER={SQL Server};SERVER=machinename;UID=sa;PWD=pass;DATABASE=dbname"

你可能感兴趣的:(sql,Web,SQL Server,asp.net,asp)