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
SBS 2008: Cannot enable shadow clopies
Windows XP - Strange Connection Issues (ping but can't browse)
Access Query Too Complex Error with Union Query
Drag & Drop
Unique index that ignores null values
How to make Report Builder 2.0 install/launch via Clickonce in Report Manager SSRS 2008
attach an imageButton to the items in a dropdownlist in ASP.Net?
ASP.NET Response.Write ()- only the text without HTML formatting
Unzip zip files in folder and subfolders recursively
I have a usb cash drawer need to make a com1