Get the App
SLTechnology News&Howtos  ›  Database  › 

Sql server 2005 error prompts what to do when trying to open or create something when creating a database

Shulou Source: shulou.com Published: 2022-05-31 16:57:12 10月03日 Update

Sql server 2005 to create a database error prompt to try to open or create things to do, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

When sql server 2005 was created, the error message was as follows: Create File encountered operating system error 5 (access denied) when trying to open or create a physical'c:\ database\ db.mdf'

Question:

CREATE DATABASE test1 ON PRIMARY

(NAME = test1

FILENAME='C:\ Program Files\ test1.mdf',SIZE=10240KB

MAXSIZE = UNLIMITED

FILEGROWTH = 10%)

LOG ON

(NAME=test1_log

FILENAME='C:\ Program Files\ test1_log.ldf'

SIZE=1024KB

MAXSIZE = 5120KB

FILEGROWTH = 1024KB)

GO

Error message: Create File encountered operating system error 5 (access denied)

Solution:

In all programs-SQL Server 2005-configuration tool-"SQL Server Configuration Manager", click "SQL Server 2005 Services", right-click 'Properties'-> 'login tab', right-click your user (such as sa) properties, select "Local System" for the built-in account, click restart and OK.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Errors tips data databases attempts operating systems properties systems problems help what to do clarity content this tools accounts articles novices scenarios more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi Huawei Apple macOS