如何从 T-SQL 中的 DSN 中的表中选择数据?
如何从只能通过 T-SQL MS SQL Server(任何版本)中的 ODBC 数据源 (DSN) 访问的数据库获取数据?
How can I get data from a database that I can only access through an ODBC Data Source (DSN) in T-SQL MS SQL Server, any version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
阅读完以下内容后,我决定创建 SSIS 包以通过 DSN 从另一个数据源获取数据。
来源
After reading the following, I decided to create SSIS packages to get data from another data source via DSN.
Source
选择是简单的部分,但真正的问题是如何连接到数据源。
首先,您从哪里选择数据? 您是在编写代码,还是仅使用查询分析器工具 (2000) 或 Management Studio (2005)?
无论如何,您都需要设置与数据库的连接。 如果您需要有关 DSN 连接字符串的帮助,网站 www.connectionstrings.com 会非常有帮助。 否则,查询工具中将会出现对话框或向导来帮助您。
The selecting is the easy part, but the real question is how do you connect to the datasource.
First, where are you selecting data from? Are you writing code, or just using the Query analyzer tool (2000) or Management Studio (2005)?
You'll need to setup your connection to the database regardless. If you need help with the connectionstrings to a DSN, the site www.connectionstrings.com is very helpful. Otherwise, from a query tool there will be dialog boxes or wizards to help you.
您需要将链接服务器添加到源中,然后您可以像往常一样查询它。
You need to add a Linked Server to the source, then you can query it as usual.