Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report