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

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Can't create database
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stuaz
Starting Member

16 Posts

Posted - 02/16/2014 :  08:45:27  Show Profile  Reply with Quote
Hi,

I am running SQL Serve 2012 on a Windows Server 2012 OS.

When logged in as ether the SA account or as my own local admin account with SQL Server management studio it will not let me create a database. I get this message:

CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'E:\MSSQL\LOGS\testsd_log.ldf'.

I have full access to that directory and can create files in it through windows explorer.

In fact I can't seem to create a database in any folder not just the one listed above!

Please help!

stuaz
Starting Member

16 Posts

Posted - 02/16/2014 :  08:48:18  Show Profile  Reply with Quote
I have also added the Account that SQL Server agent is running as to the Folder above. NT Service\MSSQLSERVER
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2055 Posts

Posted - 02/17/2014 :  01:48:51  Show Profile  Visit jackv's Homepage  Reply with Quote
Does the service account of the SQL Server have sufficient privileges to create a file on the folder?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

stuaz
Starting Member

16 Posts

Posted - 02/17/2014 :  02:18:59  Show Profile  Reply with Quote
It does yeah
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2055 Posts

Posted - 02/18/2014 :  01:49:36  Show Profile  Visit jackv's Homepage  Reply with Quote
As a test , could create the database in the official directories where you already have "master",model, msdb?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000