How to use CREATE LOGIN sql statement?
- by truthseeker
Hi,
How to use CREATE LOGIN statement on SQL Server 2005?
I was trying nearly everything, with commas, without them, with strings, without them etc.
CREATE LOGIN @loginame WITH PASSWORD = 'pass', DEFAULT_DATABASE='dbname' DEFAULT_LANGUAGE='us_english', CHECK_POLICY= OFF;
I always get below error:
Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon.