SQL Express问题. [英] SQL Express problem.
本文介绍了SQL Express问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Database 'E:\Precompiled\Cfi.App.Cfcs\App_Data\Cfi.App.Cfcs.Dev.mdf' already exists. Choose a different database name.
Cannot attach the file 'D:\Projects\Cfi.App.Cfcs\Cfi.App.Cfcs\Cfi.App.Cfcs.WebUI\App_Data\Cfi.App.Cfcs.Dev.mdf' as database 'Cfi.App.Cfcs.Dev'.
当我部署应用程序时,这个问题就来了.通过vs 2008调试器运行时,同样可以正常工作.
有任何线索吗?
This prob comes when i deploy the application. And the same works fine when running through the vs 2008 debugger.
Any clues?
推荐答案
这与数据库数据/日志文件有关.在开发模式下,看起来创建的数据库的位置与E:
绑定在一起.
而在部署过程中,您是通过D:执行此操作的,并且路径是不同的,因此会出现此问题.
您还原/使用数据库的方式导致了您的问题.检查.
It''s about database data/log files. While in development mode it looks like the database created has a location that is tied up with E:
while during deployment you are doing that through D: and the paths are different so getting this issue.
The way you had restored/using the database is causing you issues. Check that.
这篇关于SQL Express问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文