Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Attempting to create first database - error
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

scottish racer
Starting Member

1 Posts

Posted - 02/17/2007 :  19:20:34  Show Profile  Reply with Quote
I've just installed SQL Server Express and attempted to create my first database and received this error message :-(

Maybe this is a long shot, but can someone tell me what I've done wrong? Do I have a bad install or what?

Essentially I followed the steps below to create the database:

1. Started MS SQL Server Management studio Express
2. Right clicked on the Database folder
3. Selected "New Database..."
4. New Database panel displayed
5. Entered name of database - pip
6. Clicked "OK"
7. Receieved error dialog with followig message:

TITLE: Microsoft SQL Server Management Studio Express

Create failed for Database 'pip'. (Microsoft.SqlServer.Express.Smo)

For help, click:


An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)


Could not obtain exclusive lock on database 'model'. Retry the operation later.
CREATE DATABASE failed. Some file names listed could not be created. Check related errors. (Microsoft SQL Server, Error: 1807)

For help, click:



Yak Posting Veteran

78 Posts

Posted - 02/18/2007 :  05:41:57  Show Profile  Reply with Quote
check whether the Model Database is AutoColse enabled...
select DATABASEPROPERTY ('model' , 'IsAutoClose') -- if this statement return 1 means Autoclose ON
set this property false and try

if this is not the case check this link
as said, disconnect all the connection to the MOdel database and try


Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000