简体   繁体   English

连接到ASP.NET C#中的外部数据库

[英]Connecting to external database in ASP.NET C#

I don't know whether this should be here or stack exchange. 我不知道这应该在这里还是堆栈交换。 Seems like stack exchange is more for theoretical discussion so I am starting here. 似乎堆栈交换更多地用于理论讨论,所以我从这里开始。 I want to create a connection string in the web.config file for queries to a database residing at another domain. 我想在web.config文件中创建一个连接字符串,以查询位于另一个域的数据库。 I can't seem to find a good article for what to put in the connection string, and how to set up the responding database and it's security so that it will accept the connection with the proper credentials passed and execute and return the query. 我似乎找不到关于在连接字符串中放入什么以及如何设置响应数据库及其安全性的好文章,这样它就可以通过传递的正确凭据接受连接并执行并返回查询。 Does anybody know of a good article for this? 有人知道这方面的好文章吗? Thanks. 谢谢。

在这里,您可以找到有关每种连接字符串的示例,或者至少有一些重要的示例,以及一些不重要的示例: http : //www.connectionstrings.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM