dbTalk Databases Forums  

Add Login

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Add Login in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default Add Login - 01-24-2007 , 03:58 PM






I want to add login in SQL Server 2005 through Query Analyzer and grant him
System Administrative Role through query analyzer, can any one help me out?



Reply With Quote
  #2  
Old   
Jens
 
Posts: n/a

Default Re: Add Login - 01-25-2007 , 01:39 AM






hi,

that is quite easy, according to SQl Server 2005 this is:

CREATE LOGIN SomeUser WITH PASSWORD = 'SomePassword'

sp_addsrvrolemember 'SomeUser','sysadmin'

HTH, Jens K. Suessmeyer.

---
http://www.sqlserver2005.de
---


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.