如何从Lan或客户端系统打开我的Vb.Net应用程序 [英] How Can I Open My Vb.Net Application From Lan Or Client System

查看:77
本文介绍了如何从Lan或客户端系统打开我的Vb.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,

我需要有关vb.net应用程序和后端sql server 2005数据库的帮助。

我的问题是当我在服务器系统上运行我的应用程序时运行好的,但是当我安装

时,它通过交叉局域网连接到服务器系统的另一个系统

它将无法打开并发生与sql网络相关的错误。

这是我与sql数据库连接的代码: -



Dear Sir,
I need help on vb.net application and backend sql server 2005 database.
My problem is when i run my application on server system its runs OK, but when i install
it in another system which was connected via crossover lan cable with server system
it will not open and sql network related error occurs.
Here is my code for connection with sql database:-

Public Server As String
Public Function DBset() As String
        Server = System.IO.File.ReadAllText(Application.StartupPath & "\PMS.ini")
        Return "Data Source=" & Server & ";Initial Catalog=GPMS;User    ID=sa;Password=jay@321;Integrated Security=false"
    End Function





任何人都可以帮我解决这个问题。



Can any body help me on this issue.

推荐答案

确保可以从客户端计算机访问您的SQL Server实例。如果没有,请确保您的数据库引擎配置为接受远程连接。

要做到这一点

a。转到开始 - 所有程序 - SQL Server 2005 - 配置工具 - SQL Server表面区域配置

b。单击服务和连接的表面区域配置

c。选择您的SQL Server实例。

d。转到数据库引擎 - 远程连接

e。启用本地和远程连接

f。重新启动



希望,它有帮助:)
Make sure that your SQL Server instance is accessible from the client machine. If not, make sure your database engine is configured to accept remote connections.
To do that
a. Go to Start - All Programs - SQL Server 2005 - Configuration Tools - SQL Server Surface Area Configuration
b. Click on Surface Area Configuration for Services and Connections
c. Select your SQL Server instance.
d. Go to Database Engine - Remote Connections
e. Enable local and remote connections
f. Restart

Hope, it helps :)


这篇关于如何从Lan或客户端系统打开我的Vb.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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