Microsoft
Software
Hardware
Network
Question : SQL Syntax problem. Getting eror with query.
I am trying to run this query on a SQL Server 2000 DB but I get the error message
"Line 1: Incorrect syntax near 'LOGIN'.
Incorrect syntax near the keyword 'USER'."
Can someone please explain what I am doing wrong.
Code Snippet:
1:
CREATE LOGIN 1234 WITH PASSWORD = ABC123'; USE testDB; CREATE USER 1234FOR LOGIN 1234; GO()
Open in New Window
Select All
Answer : SQL Syntax problem. Getting eror with query.
EXEC sp_addlogin '1234','US3016319600:30:6E
:26:D8:49'
USE COFSE
EXEC spgrantdbAccess '1234'
Random Solutions
Microsoft, Server 2003, SP2 Bugcheck 0x0000000a Problem
Difference between XmlDocument and XmlDataDocument in .NET
VBA/Excel - How to replace date value with date variable from text box?
Reusing an iif statement in MS Access
How to use the .rc file in my static libray instead of the .rc file in the main program ?
Migration from NT4 PDC to 2003 AD... NT4 SP6 AWOL!
Passing a string using SendMessage
SSRS export INTO Excel Tabbed Sheets?
Changing the case, Forcing all caps in a vb.net Windows app
Problems With The GoTo Code