Solved

Password Complexity Policy - SQL Server 2005

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Stored Proc - Performance Enhancement 15 54
SQL Activity Monitor detail 2 24
SSMS Opening Mode 9 18
SQL - Simple Pivot query 8 13
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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
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.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

840 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