About 4,890,000 results
Open links in new tab
  1. Connecting to multiple servers in a Query Window using SQLCMD

    Jan 15, 2014 · By switching on SQLCMD mode in SQL Server Management Studio you can add some useful extra scripting functionality that is not available with T-SQL. One particularly …

  2. Execute Statements Against Multiple Servers Simultaneously

    Feb 13, 2025 · This article describes how to query multiple servers at the same time in SQL Server, by creating a local server group, or a Central Management Server and one or more …

  3. sql - Query across multiple databases on same server - Stack Overflow

    Dec 16, 2013 · There is no universal built-in way, how to execute one script on multiple databases. You can have stored procedure which will dynamically concate strings in one large …

  4. How to Connect Multiple SQL Servers Using SSMS Tool: A …

    Apr 9, 2025 · Whether you’re using SQL Server 2022, 2019, or both, understanding how to connect via SSMS is essential for database development, testing, and administration. In this …

  5. Use SQL Server Management Studio to Connect to Database

    May 1, 2025 · This chapter shows how to use SSMS to connect to the main component of SQL Server which is the Database Engine. According to Microsoft, the Database Engine is an …

  6. Configure Multiple Database Instances on same SQL server

    Jul 14, 2022 · Use Microsoft SQL Server Management Studio (MSSMS) to verify that each instance has been configured to allow remote connectivity. Open MSSMS and connect to each …

  7. How to create and configure a linked server in SQL Server Management Studio

    By using a linked server to retrieve data from several SQL instances, the only thing that should be done is to connect to one SQL instance. There are two ways of configuring linked server in …

  8. Selecting data from two different servers in SQL Server

    Dec 30, 2021 · What you are looking for are Linked Servers. You can get to them in SSMS from the following location in the tree of the Object Explorer: or you can use sp_addlinkedserver. …

  9. Connect with SQL Server Management Studio | Microsoft Learn

    Apr 16, 2025 · This article describes how to connect to the SQL Server Database Engine with SQL Server Management Studio 20 and later versions, for the following products and services: …

  10. SQL Server Multi Database Query with Registered Servers

    Jan 17, 2013 · In this tip we will show you how to run a query against multiple databases that are spread among different SQL Server instances. We will use the Registered Servers feature in …