Click here to Skip to main content
15,896,439 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
[no name] 8-Oct-12 2:17am    
Without password means blank..try by giving empty quotes..

1 solution

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[^][]
 
Share this answer
 
Comments
Code_seeker_ 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900