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 2000 Forums
 Transact-SQL (2000)
 sp_loginas(User,Password)

Author  Topic 

Ken Blum
Constraint Violating Yak Guru

383 Posts

Posted - 2005-05-04 : 10:55:48
Is there such a sproc that I can call in T-SQL to login as a user?

TIA,

YellowBug
Aged Yak Warrior

616 Posts

Posted - 2005-05-04 : 11:38:08
Have a look at SETUSER 'username' in Books Online.

Hope it helps.
Go to Top of Page

Ken Blum
Constraint Violating Yak Guru

383 Posts

Posted - 2005-05-04 : 11:41:53
Yup, that's it. Thanks.
Go to Top of Page
   

- Advertisement -