Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Database failed due to denied access
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01500934
Message ID:
01500937
Vues:
71
This message has been marked as a message which has helped to the initial question of the thread.
>Hello all,
>
>This is no doubt a simple thing related to file access and security, but I am unable to create a new database on my new server (Windows Server 2008 R2 Standard). I have a hosted server with a third party company and I am attempting to create a new database. The server has a C drive and a D drive. The D drive is where I want to store all my data.
>
>I can successfully create a database using the C drive, but when I attempt to change the location of the MDF and LDF files to the D drive I get an error stating:
>
>
>Create failed for Database 'testing'.  (Microsoft.SqlServer.Smo)
>CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'D:\SQLData\testing.mdf'.
>
>
>Any help is greatly appreciated.
>
>TIA
>
>Bob

Are you sure the account your run your queries has rights to the D drive?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform