Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Turn off SQL 2008 Password Policy for entire instance

Posted on 2010-08-17
2
Medium Priority
?
15,919 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 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

810 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