Solved

CREATE LOGIN CREATE USER in SQL 2000

Posted on 2010-09-03
5
412 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

791 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