About 4,410,000 results
Open links in new tab
  1. What is the T-SQL syntax to connect to another SQL Server?

    Jun 20, 2015 · In SQL Server Management Studio, turn on SQLCMD mode from the Query menu. Then at the top of your script, type in the command below. If you are connecting to multiple …

  2. specify server in sql script - Stack Overflow

    Dec 13, 2011 · You can put the SQL Management Studio in SQLCMD mode and specify the server with the :CONNECT myserver statement. You can switch on command mode by …

  3. Script objects in SQL Server Management Studio

    Feb 13, 2025 · This tutorial teaches you to generate Transact-SQL (T-SQL) scripts for various objects found within SQL Server Management Studio (SSMS). In this tutorial, you find …

  4. Generate Scripts (SQL Server Management Studio)

    Feb 13, 2025 · Learn how to use the Generate and Publish Scripts Wizard to create Transact-SQL scripts for multiple objects, and how to use the Script as menu in Object Explorer to …

  5. Connect to SQL Server with VBScript: A Step-by-Step Guide

    Nov 8, 2024 · To connect to a SQL Server database, we’ll use ADODB.Connection in VBScript. Here’s how to set it up. In the above code: Replace SERVER_NAME with the name or IP …

  6. Connect and Query SQL Server Using SSMS | Microsoft Learn

    Apr 16, 2025 · Connect to a SQL Server instance in SSMS. Create and query a SQL Server database in SSMS running basic Transact-SQL (T-SQL) queries.

  7. Connect to SQL Server Database from PowerShell

    Sep 5, 2014 · To connect to SQL Server as the user running the code, remove User ID and Password from your connection string: $SqlConnection.ConnectionString = "Server = …

  8. Connecting PowerShell to SQL Server - SQL Shack

    Jan 13, 2016 · There are a number of ways to connect to SQL Server via PS. In this article I wanted to go over the options that are available to you. If you have used PS for any number of …

  9. Connect to SQL Server - MSSQLTips.com

    Jan 21, 2021 · In this article we look at how to connect to the SQL Server database engine, Analysis Services (SSAS), Integration Services (SSIS), Reporting Services (SSRS) and Power …

  10. Powershell script to create multiple SQL Server Connections

    Feb 24, 2016 · There are lots of ways to handle multi-line commands (some if not all detailed in the link) but this is how it was done in this script. `and continues here. Where $i is the counter, …

  11. Some results have been removed
Refresh