在我的dotnet桌面表单应用程序中包含sql server 2005的databse mdf文件 [英] To include databse mdf file of sql server 2005 in my dotnet desktop form applicatio

查看:107
本文介绍了在我的dotnet桌面表单应用程序中包含sql server 2005的databse mdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用.net 3.5和sql 2005 express的桌面应用程序(文档管理产品).我希望数据库mdf文件包含在项目文件夹中,并希望使用Windows身份验证模式进行连接.如果可能的话,请问我创建并设置时会出现任何问题吗?

I have a desktop application (document management Product) using .net 3.5 and sql 2005 express. I want my database mdf file to be included in the project folder and want to connect using windows authentication mode. If this is possible, will it create any problem when I deply and create a setup?

推荐答案

是的,有可能在您的项目文件夹中包含mdf,ldf文件.因此,onncetion字符串将具有"server =.\ SQLEXPRESS".当您同时部署l时,它不会造成任何问题.效果很好.
Yes it is possible to have your mdf, ldf files in your project folder. SO the onncetion string will have "server = .\SQLEXPRESS".  It will not create any problem when you deploy lalso. Works fine.


这篇关于在我的dotnet桌面表单应用程序中包含sql server 2005的databse mdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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