December 12, 2006 at 10:30 am
Hi all
I'm trying to setup de[ployment scripts for a new database and I'm adding a new database login as follows
CREATE login [username] WITH PASSWORD=N'password', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
and I get the following error
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'login'.
I know this works as I've used it on other servers, so I'm not sure what I'm missing. I'm running a local version SS2005 on a Windows XP Professional PC, and I'm connected as the sa user.
This is slowly driving me insane, so if any one get throw any light my way it would be appreciated
Thanks in advance
Mark
December 12, 2006 at 1:23 pm
It works for me, also running on XP pro. Is this part of a larger script? Are you maybe missing a "Go" or ";" somewhere?
A.J.
DBA with an attitude
December 12, 2006 at 1:42 pm
It is working on windows2000, xp also...
Check your batch terminator...
MohammedU
Microsoft SQL Server MVP
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply