如何通过本地网络由多台计算机在C#中使用我的库存系统 [英] how can I use my inventory system in C# by a multi computer through Local network
问题描述
我使用sql server数据库编写了C#中的库存系统,如何通过本地网络同时使用多台计算机?
< blockquote>您好,在单独的系统(服务器)中设置库存数据库,并配置数据库以允许远程连接。现在你必须修改你的连接字符串,连接字符串需要指向服务器中的数据库。
数据源= 127 。 2 。 3 .4 \ SQLEXPRESS, 1433 ;网络库= DBMSSOCN;初始目录= database_name_here;用户ID = user_id_here;密码= password_here
数据源= 127.2。 3.4 \ SQLEXPRESS,1433; ,在这一行中,
127.2.3.4 - 表示服务器IP地址。
< b> SQLEXPRESS - 表示数据库服务器实例。
1433 - 表示服务器端口号。
设置数据库后服务器,您可以在局域网内的任何PC中使用您的应用程序,它将根据连接字符串连接服务器中的数据库。
I've programmed an inventory system in C# using sql server database, how can I use from more than a computer in the same time through a local network?
Hi, Setup your inventory database in a separate system(server), and configure the database to allow remote connections. Now you have to modify your connection string, connection string needs to be pointed the database in the server.
Data Source=127.2.3.4\SQLEXPRESS,1433;Network Library=DBMSSOCN;Initial Catalog=database_name_here;User ID=user_id_here;Password=password_here
Data Source=127.2.3.4\SQLEXPRESS,1433;, in this line,
127.2.3.4 - denotes the server IP address.
SQLEXPRESS - denotes the database server instance.
1433 - denotes the server port number.
After setup of the database server, you can use your application in any PC inside the LAN, and it will connects the database in the server as per the connection string.
这篇关于如何通过本地网络由多台计算机在C#中使用我的库存系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!