简体   繁体   中英

Is there any cross server sql request utility like linqpad?

是否有像linqpad这样的跨服务器sql请求实用程序?(至少是伪跨服务器)还是有什么方法可以使用Management Studio进行跨服务器请求?

As discussed in the comments, use SQL Server Management Studio and Linked Servers .

Some specific resources here:

Googling for something like SQL Linked Server Query Examples should uncover everything you need.

So the answer links to answers that cover 2 out of the myriad of options for doing cross server joins (including local possibilities as per the OPs comment)

  • Linked Servers covered by other answer's link
  • OpenQuery covered by other answer's link
  • OpenDataSource
  • OpenRowSet
  • SSIS
  • Using one of the Open* methods to make one server call another, which calls another.
  • Linqpad can use any C#/Vb/F# code that can get data from multiple servers - not just a single drop down at the top, you don't even have to use that drop down for what you want. see ADO.net
  • Composing an Open* query via code
  • SSIS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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