Solved

CREATE LOGIN CREATE USER in SQL 2000

Posted on 2010-09-03
5
416 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
push and Pull replication 31 46
Need sql in string 2 29
Many to one in one row 2 38
add stored proc on publlication 4 20
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

763 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