[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Turn off SQL 2008 Password Policy for entire instance

Posted on 2010-08-17
2
Medium Priority
?
15,342 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
[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
2 Comments
 
LVL 3

Accepted Solution

by:
PrakashRaoBS earned 1000 total points
ID: 33455599
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
ID: 33455879
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

656 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