我的数据库项目不在其他计算机上工作 [英] my database project not working on other computer

查看:83
本文介绍了我的数据库项目不在其他计算机上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#中的windows表单应用程序我也使用过数据库,但现在我希望我的项目在每台计算机上运行(我知道必须安装sql server)。我在bin-debug文件夹中复制了数据库文件,但stil它无法工作...任何建议??

i am working on windows form application in c# i have also used database in it but now i want that my project run on every computer (i know that sql server must be installed). i copied database file in bin-debug folder but stil it is not working ...any suggestion??

推荐答案

更改了数据源部分,如果你在sql中设置的话窗口和用户之类的安全性然后改变数据源部分。如果您设置了数据Source =。然后你的c#表单站在基于Windows的安全性。所以我认为你可以再次检查你的连接字符串。如果您遇到任何问题,请留言。

changed data source parts,if you have set in sql both security like window and user then change data source parts. if you are set a data Source=. then your c# form under standing the windows based security. so I think you can check your connection string again. if any problem you are faced free feel left the message.
Data Source=.;Initial Catalog=employee;Integrated Security=True


使用它:





数据源= .;初始目录=员工;集成安全性= True; username =; password =;
use this :


Data Source=.;Initial Catalog=employee;Integrated Security=True;username=" " ;password="";


您应检查您的连接字符串,并且必须使用sql附加。

可能是您的服务器名称和uid,pwd不同
You should be check your connection string and must be attach with sql.
may b your server name and uid,pwd is different


这篇关于我的数据库项目不在其他计算机上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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