About 50 results
Open links in new tab
  1. Run Transact-SQL Commands with the sqlcmd Utility - SQL Server

    Jan 30, 2026 · The sqlcmd utility lets you enter Transact-SQL statements, system procedures, and script files using different modes, using go-mssqldb or ODBC to run T-SQL batches.

  2. Use sqlcmd - SQL Server | Microsoft Learn

    Jan 29, 2026 · Learn how to use the sqlcmd for ad hoc interactive execution of Transact-SQL statements and scripts, and automate Transact-SQL scripting tasks.

  3. Start the sqlcmd Utility - SQL Server | Microsoft Learn

    Dec 18, 2025 · Learn how to start the sqlcmd utility, which lets you enter Transact-SQL statements, system procedures, and script files, in SQLCMD mode or in scripts and jobs.

  4. Use sqlcmd with Scripting Variables - SQL Server

    Nov 18, 2025 · Scripting variables can be defined explicitly by using the setvar command, or implicitly by using the sqlcmd -v option. This article also includes examples defining environmental variables at …

  5. Commands in the sqlcmd Utility - SQL Server | Microsoft Learn

    Dec 18, 2025 · Control sqlcmd with extra commands for editing, variables, output, and execution control.

  6. SQLCMD -L return no servername - Microsoft Q&A

    Jul 27, 2021 · "Because of the nature of broadcasting on networks, sqlcmd may not receive a timely response from all servers. Therefore, the list of servers returned may vary for each invocation of this …

  7. Connect to SQL Server with sqlcmd - SQL Server | Microsoft Learn

    Nov 18, 2025 · Learn how to select which protocol sqlcmd uses to communicate with SQL Server. The choices are: TCP/IP, named pipes, and shared memory.

  8. Download and Install the sqlcmd Utility - SQL Server

    Jan 29, 2026 · Learn how to download, install, or find the sqlcmd utility preinstalled on your system.

  9. sqlcmd ユーティリティのコマンド - SQL Server | Microsoft Learn

    スクリプト変数は次の方法で指定できます: コマンド ラインのオプションを暗黙的に使用します。 たとえば、 -l オプションでは SQLCMDLOGINTIMEOUT sqlcmd 変数が設定されます。 :Setvar コマン …

  10. why is sqlcmd command not found server ? - Microsoft Q&A

    May 12, 2022 · There are many reasons why sqlcmd -L will not show a SQL Server. There is not a reliable way to "detect" from machine on the network a SQL Server is running somewhere on the …