主题:[讨论]这样连接SQL服务器出错!!帮我看下`
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
conn.ConnectionString = "Driver={sql server};server=218.0.*.*;uid=sa;password=***;database=mirworlddb"
conn.Open
sql = "insert into TBL_ACCOUNT(ACCOUNT,PASSWORD)values('lqh201','6585201')"
rs.Open sql, conn, adOpenKeyset, adLockOptimistic
MsgBox "注册成功!"
这样用VB运行,说是SQL SERVER不存在或访问被拒绝``
SA和密码都正确 ,SQL服务管理器 也运行了``
大家帮我看下 是不是 connectionstring 不对
Dim rs As New ADODB.Recordset
conn.ConnectionString = "Driver={sql server};server=218.0.*.*;uid=sa;password=***;database=mirworlddb"
conn.Open
sql = "insert into TBL_ACCOUNT(ACCOUNT,PASSWORD)values('lqh201','6585201')"
rs.Open sql, conn, adOpenKeyset, adLockOptimistic
MsgBox "注册成功!"
这样用VB运行,说是SQL SERVER不存在或访问被拒绝``
SA和密码都正确 ,SQL服务管理器 也运行了``
大家帮我看下 是不是 connectionstring 不对