在远程M/C上查找SQL身份验证的状态 [英] Find status of SQL Authentication on Remote m/c
本文介绍了在远程M/C上查找SQL身份验证的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从其他m/c查找远程m/c上的SQL身份验证状态
即sql server 2000是通过编码对远程m/c进行服务器身份验证还是Windows身份验证????
请帮助我..
How will i find status of SQL Authentication on Remote m/c from other m/c
i.e. sql server 2000 is server authentication or windows authentication of remote m/c through coding????
Please help me..
推荐答案
使用此代码
use this code
dim con as new sqlconnection
con.connectionstring="data source=address_of_computer;uid=login_name;
pwd=password;database=database_name"
con.open
if con.state=open then
msgbox ("connected")
else
msgbox ("server not found")
end if
这篇关于在远程M/C上查找SQL身份验证的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文