Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 if login exists

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2008-06-19 : 04:58:38
I know how to create a login using sp_addlogin
How do you check if the login already exists and if it does not then use sp_addlogin to create it?
Thanks

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2008-06-19 : 05:03:10
select name from master..syslogins

- Lumbago
Go to Top of Page
   

- Advertisement -