分类：电脑/网络-程序设计
问题：asp中连接数据库出现的问题 
回答：rs两次定义了，你试试以下代码dim Uid,sql Uid = Request.QueryString("UserId") sql = "SELECT * FROM Users WHERE UserId=" & Uid set conn= eateobject(" nnection") conn.open "dsn=userman;uid=sa;pwd=sa;database=userman" set rs= eateobject(" cordset") rs=conn.execute (sql)你如果把连接写成函数的话一定要在后面加End Function