需要错误解决数据库mdf文件的解决方案 [英] Need Solution for Error reguarding database mdf file

查看:99
本文介绍了需要错误解决数据库mdf文件的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在桌面应用程序(前端c#3.5和后端SQL SERVER 2005)上开发一个项目.我已经为该项目创建了mdf文件(基于服务的数据库),但是每当我运行该应用程序时,它都会显示错误消息无法将文件"E:\ CarRent \ CarRent \ carRent.mdf"复制到"bin \ Debug \ carREnt.mdf".希望尽快回复.感谢您的时间和考虑.

I am working on a project on desktop application(front end c# 3.5 and back end SQL SERVER 2005 ).I have created mdf file(service-based database) for project,but whenever I run the application it gives error "Unable to copy file "E:\CarRent\CarRent\carRent.mdf" to "bin\Debug\carREnt.mdf".looking for reply soon.Thank you for time and consideration.

推荐答案

在解决方案资源管理器中选择carRent.mdf并转到属性,将Copy to output设置为值Copy if newer / Do not copy

参考: http://msdn.microsoft.com/en-us/library/ms246989.aspx [ ^ ]
Select your carRent.mdf in solution explorer and go to properties. Set Copy to output to value Copy if newer / Do not copy

Ref:http://msdn.microsoft.com/en-us/library/ms246989.aspx[^]


这篇关于需要错误解决数据库mdf文件的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆