服务器&客户端连接字符串

编程入门 行业动态 更新时间:2024-10-23 06:27:19
本文介绍了服务器&客户端连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

服务器&客户端连接字符串

本文发布于:2023-10-30 22:45:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544217.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符串   客户端   服务器   amp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!