从表单到主机的连接数据库 [英] connection database from form to host

查看:54
本文介绍了从表单到主机的连接数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题,我想创建从C#中的表单应用程序到Internet主机中的数据库的连接吗?
tancks.

i have a problem,i want to create connection from form application in c# to database in internet host?
tancks.

推荐答案

在这里,您有许多数据库服务器的连接字符串示例: http://www.connectionstrings.com/ [ ^ ].选择合适的一个.
但是请注意以下内容:
-提供者不太可能会打开从Internet可以访问数据库连接所需的tcp端口.很可能会为您提供可从内部"使用的连接字符串,并且您将无法通过该提供程序的边界-双向.
-集成身份验证方法仅在域或本地环境中不能通过Internet使用,因此您将需要用户名和密码
Here you have a lot of connection string samples for several database servers: http://www.connectionstrings.com/[^]. Choose the proper one.
But be aware of followings:
- It is unlikely, that a provider will keep open the tcp ports necessary for a database connection to be accessible from internet. It is more likely, that you will be provided the connection string you can use from "inside", and you will not be able to pass the boundaries of that provider - in neither direction.
- Integrated authentication methods can not be used over internet, only in domain or local environment, thus you will need a username and a password


这篇关于从表单到主机的连接数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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