我的网站显示以下错误plz帮我解决它 [英] My website shows the following error plz help me to solve it
问题描述
Server Error in '/' Application.
CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\Inetpub\vhosts\the-gurukul.co.in\httpdocs\App_Data\Gurukuldata.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
What I have tried:
Plz help i have tried many things but nothing worked. What to do?
推荐答案
阅读错误信息,非常清楚:
Read the error message, it's very clear:
在数据库'master'中拒绝CREATE DATABASE权限。
尝试为文件C附加一个自动命名的数据库:\ Inetpub \vhosts \the- gurukul.co.in\httpdocs\App_Data\Gurukuldata.mdf失败了。存在具有相同名称的数据库,或者无法打开指定的文件,或者它位于UNC共享上。
CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\Inetpub\vhosts\the-gurukul.co.in\httpdocs\App_Data\Gurukuldata.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
您无权附加数据库;数据库位于SQL无法访问权限或其他原因的文件夹中; SQL中已存在具有该名称的数据库。
您不应在网站中附加数据库:ATTACH是一项开发功能,不受不支持完整的SQL。直接在SQL中创建数据库,并以这种方式访问它。
You do not have permission to attach a database; the database is located in a folder which SQL cannot access for permission or other reasons; or a database with that name already exists in SQL.
You should not be attaching a DB in a website: ATTACH is a development feature, and is not supported by "full" SQL. Create your DB in SQL directly, and access it that way.
这篇关于我的网站显示以下错误plz帮我解决它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!