在连接字符串里加上服务器和数据库驱动程序就可以了 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