Solved

Password Complexity Policy - SQL Server 2005

Posted on 2006-11-17
3
1,359 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 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

730 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