问题描述
我很感谢你们设置我的SQL-Server,我现在正在使用以下连接字符串:
I''ve managed thanks to you guys to set up my SQL-Server and I''m currently using the following connection string:
public static string constr = @"Data Source=ASUS-PC\SQLEXPRESS;
AttachDbFilename=C:\Users\ASUS\Desktop\basededados\cybercafe.mdf;
Integrated Security=True;User Instance=True;";
我的问题是我是否必须更改用户的连接字符串,或者它是否与上面相同。
我正在制作一个网吧应用,管理员登录并管理服务器中的用户,该服务器位于我的笔记本电脑中。用户从访问我笔记本电脑中的数据库的不同计算机登录服务器。
备注包括我的笔记本电脑(服务器)在内的计算机将打开同一个网络。
My question is if I have to change the connectionstring for the user, or if it''s the same as above.
I''m making a cybercafe application, the admin logs in and manages the users in the server, which is in my laptop. And the users log into the server from diferent computers accessing the database that is in my laptop.
Remark that the computers including my laptop(server) are going to be on the same network.
推荐答案
这篇关于服务器&客户端连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!