连接到sqlexpress的问题 [英] problem in connecting to sqlexpress

查看:92
本文介绍了连接到sqlexpress的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,我用C#和sqlserver 2008开发了一个软件。我完成了这个软件的开发,我在安装它时遇到了问题。我在客户计算机上安装了sqlexpress,我不知道我在哪里放置数据库(mdf,ldf)文件。我必须使用什么连接字符串。



谢谢。

hi friends, i have developed a software with C# and sqlserver 2008. i finished developing of this software and i have problem in installing it. i installed sqlexpress in customer computer and i do not know where i place database(mdf, ldf) files. and what connection string i must use.

thank you.

推荐答案

这取决于

1.如果您想让您的数据库访问您的客户端,那么您可以在客户端计算机上的已安装SQL Express中附加数据库文件.bak或through .mdf文件,只需

并更改web.config中的路径。 (连接字符串应该在那里,因为你已经开发了它)

2.在客户端计算机上的IIS服务器中托管你的应用程序,再次取决于你是否想让客户端访问整个代码。 br />


更符合您的要求,以便会员可以相应地帮助您。
Well it depends
1. if you want to give your database access to your client then you can attach database file .bak or throught .mdf file in installed SQL Express on client computer simply
and change the path in web.config. (the connection String should be there as you have done development on it)
2. host you application in IIS server on client computer, again it depends whether you want to give client access to whole code.

be more specific with your requirements so that members can help you accordingly.


这篇关于连接到sqlexpress的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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