Microsoft
Software
Hardware
Network
Question : test login/user
without manually connecting and testing, is it possible for a sa to test if the login/user has connect privileges fine (if password works ok etc) through t-sql code? basically something equivalent to 'test' button in ssis..
thanks
Answer : test login/user
Ok, Hope you want to check from sa login right. In that case, then you can run the script below
select * from sys.syslogins
where hasaccess = 1
and sid = SUSER_ID ('name')
If a row is returned, then the login has connect privileges else it is not.
Random Solutions
Recommended widths for html emails
Outlook 2010 bulk calendar delete
Ethernet crossover cable connect
10 lines of C# to VB.NET translation supervising
Wireless AP network in a warehouse
changing external server name.. do I need to change anything in Outlook
SBS 2008 - STOP c00002e2
split comma delimited values into seperate columns in SQL 2005
Outlook 2007 does not remember password.
Pass value on form through Querystring Javascript