?
Solved

Password Complexity Policy - SQL Server 2005

Posted on 2006-11-17
3
Medium Priority
?
1,362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

770 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