Solved

Turn off SQL 2008 Password Policy for entire instance

Posted on 2010-08-17
2
11,110 Views
Last Modified: 2012-05-10
I am importing a database and users, but when I do,  I receive an error about the passwords not being complex enough.  This is a SQL 2008 server, and I want to disable the password policy on the instance, then do the import.  Is this possible? I know how to do it for individual logins.

Thanks.
0
Comment
Question by:ITGhost
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
PrakashRaoBS earned 250 total points
Comment Utility
If you are creating a new login using CREATE LOGIN, you can use two clauses related to password policy: CHECK_POLICY and CHECK_EXPIRATION. If they are not specified, the default for CHECK_POLICY is ON and for CHECK_EXPIRATION is OFF.

These options can be changed at a later time using ALTER LOGIN. CHECK_POLICY governs the bulk of password policy enforcement related to password strength and lock out. CHECK_EXPIRATION separately covers the enforcement of password expiration, which was considered too disruptive for the rolling out of this feature, to be enabled by default.

CHECK_EXPIRATION is also required when using the MUST_CHANGE option, to force a password change on the first login through that account. CHECK EXPIRATION depends on CHECK_POLICY; other dependencies are covered in BOL.


USE [master]

GO

CREATE LOGIN LoginName WITH PASSWORD=N'Passw0rd', 

DEFAULT_DATABASE=[master], 

CHECK_EXPIRATION=OFF, 

CHECK_POLICY=OFF

GO

Open in new window

0
 
LVL 3

Expert Comment

by:PrakashRaoBS
Comment Utility
Three possible workarounds are:

change the local/domain password policy;
use a password that meets the password policy requirements; or,
use the CHECK_POLICY option to disable policy validation:

Goto Start - > Run -> type secpol.msc ->
Then goto \Security Settings\Account Policies\Password Policy

disable complexity requirements and try.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

763 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

7 Experts available now in Live!

Get 1:1 Help Now