Solved

CREATE LOGIN CREATE USER in SQL 2000

Posted on 2010-09-03
5
395 Views
Last Modified: 2012-05-10
what is the equivalent of the following in SQL 2000

CREATE LOGIN [domain\login] FROM WINDOWS WITH DEFAULT_DATABASE=[Tracker]
CREATE USER [domain\login] FOR LOGIN [domain\login]
0
Comment
Question by:anushahanna
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:lundnak
ID: 33599784
EXEC dbo.sp_grantdbaccess @loginame = N'loginname', @name_in_db = N'username'
0
 
LVL 7

Accepted Solution

by:
lundnak earned 500 total points
ID: 33599787
forgot the login...

EXEC master.dbo.sp_grantlogin @loginame = N'loginname'
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33599851
how do we mention it is a windows user and not a SQL one?
0
 
LVL 7

Assisted Solution

by:lundnak
lundnak earned 500 total points
ID: 33600005
EXEC master.dbo.sp_grantlogin @loginame = N'DOMAIN\login'

Because there isn't the @password parameter, it assumes Windows AD.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33601425
Thanks lundnak.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now