服务器&客户端连接字符串 [英] Server & Client connectionstring

查看:108
本文介绍了服务器&客户端连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很感谢你们设置我的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.

推荐答案

我认为 this [ ^ 是你要找的。



在C#中使用设置 - MSDN [ ^ ]



祝你好运,

OI
I think this[^] is what you are looking for.

Using Settings in C# - MSDN[^]

Good luck,
OI


这篇关于服务器&客户端连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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