开发者

I am having abc.mdf database in D drive and i want to use in my website using web.config?

I am having abc.mdf database in D drive and i want to use in my website and i have tried as in web.config

and i got following error

An attempt to attach an auto-named database for file D:\abc.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

开发者_JS百科

I am sure database doesn't exists anywhere else.Please help


Please make sure "vik.mdf" file is not already placed in MSSQL Data folder (C:\Program Files (x86)\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA) or database is not already attached in Microsoft SQL server Management Studio.


When you report that "If I am using User Instance=true with above it raises error... The user instance login flag is not supported on this version of SQL Server" it sounds like you aren't using SQLEXPRESS. Only SQLEXPRESS supports user instances.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜