作者wmohmoo (吃猫)
看板C_Sharp
标题[问题] 一直无法连接SQL资料库
时间Sat Apr 25 23:55:37 2015
请问各位
小弟写C#时, 遇到问题无解 爬文还是没办法解决
想请问大家一下
小弟在伺服器总管进行资料连接
选好 SQL Server 资料库档案, 也选好资料库档名
都用好後按下测试连接, 都会跑出这段
An attempt to attach an auto-named database for file C:\Program
Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DARA\ex0515.mdf failed.
A database with the same name exists, or specified file cannot be opened, or
it is located on UNC share.
请问是我哪边没设定好吗??
求助过Google大神也是无解....跪求版上前辈帮解惑
感谢!!!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.238.209.98
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1429977339.A.0BB.html
1F:推 J002: 改成连资料库 而不是用连资料库档案试试? 04/26 14:03
2F:→ wmohmoo: 感谢J002大!! 奇怪我之前也试过但那时不行....再次感谢!! 04/26 16:14
3F:推 kattte: 你的资料库是在本机上吗? 不要用选项产生自己打程式码试 04/27 03:50
4F:→ kattte: 试 04/27 03:50
5F:→ wmohmoo: 小弟试了 原来是少做步骤 感谢kattte热心解答!! 04/29 11:05