Solved

Password Complexity Policy - SQL Server 2005

Posted on 2006-11-17
3
1,350 Views
Last Modified: 2012-08-13
I'm trying to create logins in SQL Server 2005 with no passwords.

Command Executed:

"exec sp_addlogin <LOGIN_NAME>"

Error:

"Password validation failed. The pass does meet Windows policy requirements because it is not complex enough"

I'm running this on an older version of Windows 2003 Server so SQL Server should not be refering to the OS for a password policy; but even so, the Windows password policy is set to the minimum (0 characters). Furtermore, I am executing this command in a Mixed Mode login with "CHECK_POLICY" turned off.

Any thoughts on why a password policy is still being enforced?
0
Comment
Question by:jvivoda
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Nightman
ID: 17968245
It might only be changed on restart of SQL Server.

You can try this:

CREATE LOGIN <LoginName> WITH CHECK_POLICY=OFF

Note - you can't set CHECK_POLICY=OFF with sp_addlogin. sp_addlogin has been deprecated and new functionality has not been exteneded to it's use.
0
 
LVL 28

Accepted Solution

by:
imran_fast earned 250 total points
ID: 17970915
use below statement to create login without password( empty password)

EXEC sp_addlogin 'NewLogin',''
0
 
LVL 29

Expert Comment

by:Nightman
ID: 18197944
Hi jvivoda

Have our comments assisted you? If not, please can you provide some feedback, otherwise have a look at http://www.experts-exchange.com/help.jsp#hs5 for information on closing questions.

Regards
Nightman
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now