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
SQL Simple syntax issue - based on Group By / Having
Automatically Adding Text to Cells
Problems after Sharepoint server 2010 install - can not open central administration
how can i translate gujarati sentence into english sentence ??
How to stablish a proper setup in MS Outlook 2003 encrypting mails
ADFIND, DSQUERY or LDAP Querie for Pulling LastLogOn
How to set the forecolor a column in datagridview.vb.net 2005 windows
Clients not connecting to WSUS
Exchange 2007 Relay to External
How to get two new Primary keys, sent to two Foriegn keys