Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-Server
Hi ,
 
Please help me in createing Database login without password, I need query for this can any body help me, I have query to create login with password but i want without password.
 

CREATE login LoginName WITH password = 'pwd',DEFAULT_DATABASE=dbname
Posted 7-Oct-12 19:40pm
Comments
snehasish nandy at 8-Oct-12 2:17am
   
Without password means blank..try by giving empty quotes..

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi
 
try this, it will work
Syntax:
CREATE LOGIN [computer_name\Mary]
FROM WINDOWS
WITH DEFAULT_DATABASE = [TestData]
 
http://msdn.microsoft.com/en-us/library/ms365326.aspx[^][]
  Permalink  
Comments
Code_seeker_ at 8-Oct-12 2:21am
   
tx Tajuddin :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CHill60 360
1 OriginalGriff 343
2 Sarvesh Kumar Gupta 168
3 RyanDev 145
4 Sergey Alexandrovich Kryukov 128


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid