本文介绍了如何连接到远程计算机上存储的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个简单的应用程序,它将数据插入数据库.该数据库位于远程计算机上.
但是,这台装有SQL的机器(装有SQL).我的电脑(有应用程序)可以找到这台机器的
通过使用代码的IP地址.到现在为止一切都还好.
现在,当我尝试将数据插入数据库时​​,出现错误找不到此类主机".这些机器是通过
连接的相同的路由器,所以我需要问我每次尝试插入数据时是否都已打开Internet或还有其他方法
解决这个问题?


注意:它不是Web应用程序.它是一个简单的C#应用​​程序.

请帮忙

谢谢和问候
Ajinkya

Hey people,

I have a simple application which inserts data into database. The database is located on a remote machine.
However this machine(which has SQL) has a router installed. My pc(which has application) can find this machine''s
IP address by using a code. Everything is okay till this stage.
Now when I try to insert data into DB it gives me error "No Such Host Found". As these machines are connected through
same router, so i need to ask that do i have switch on internet everytime I try to insert data Or is there any other way
around this problem?


NOTE : Its not a Web Application. Its a simple C# application.

Please help

Thanks and regards
Ajinkya

推荐答案



这篇关于如何连接到远程计算机上存储的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 19:01
查看更多