Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CREATE LOGIN CREATE USER in SQL 2000

Posted on 2010-09-03
5
Medium Priority
?
448 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 2000 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 2000 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

705 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