About 4,520,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. 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 …

  3. 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 …

  4. 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.

  5. Script objects in SQL Server Management Studio

    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 examples of how to …

  6. Generate SQL Create Scripts for existing tables with query

    Apr 1, 2009 · If you are looking to generate create scripts programmatically in .Net, I would highly recommend looking into Server Management Objects (SMO) or Distributed Management …

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

    Nov 8, 2024 · In this guide, we’ll explore how to connect to SQL Server with VBScript, execute a query, and retrieve the results. This can be particularly useful for system administrators or …

  8. 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, …

  9. Starting SSMS with a specific connection and script file

    Feb 13, 2009 · Have you ever wanted SSMS to start and automatically and establish a connection to your DBA \ hub server and have your daily routine queries already open ready to run? Good …

  10. How To Generate Script Of Table With Data In SQL Server

    Nov 19, 2024 · Generating scripts for tables with data in SQL Server is crucial when working on a SQL server migration project or creating a test environment. The above steps can help you …

  11. Some results have been removed
Refresh