About 43,100 results
Open links in new tab
  1. How to I run a single sql command from the sqlcmd prompt?

    The answer above uses lowercase -q, which will run the command but leave the sqlcmd prompt open and running. Depending on what you want, the case of the -Q/-q argument matters.

  2. How to connect Sqlcmd to the server? - Stack Overflow

    Jan 7, 2013 · Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books …

  3. Invoke-Sqlcmd doesn't allow TrustServerCertificate - Stack Overflow

    Nov 9, 2023 · 26 Fundamentally - unfortunately - there are two - technically distinct - Invoke-SqlCmd cmdlets: The obsolete Invoke-SqlCmd command from the obsolete SQLPS module. …

  4. How do I call a stored procedure with arguments using sqlcmd.exe?

    Jun 19, 2011 · I need to call a stored procedure and pass arguments in from Powershell. I think the best option is to use sqlcmd.exe but I'm not sure how to pass arguments to the stored proc …

  5. Issue running Invoke-SQLCmd in PowerShell - Stack Overflow

    Dec 9, 2023 · Thanks, folks. For now, we decided to go with the Invoke-Sqlcmd -TrustServerCertificate suggestion, as it makes the script work and satisfies our immediate needs.

  6. In SQL Server Management Studio what is SQLCMD mode?

    Feb 1, 2012 · In SSMS, SQLCMD mode is a script execution mode that simulates the sqlcmd.exe environment and therefore accepts some commands that are not part of T-SQL language. …

  7. Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server:SSL …

    Oct 27, 2023 · Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : SSL Provider: [error:0A000086:SSL routines::certificate verify failed:self-signed certificate]. Sqlcmd: Error: …

  8. Difference between Sqlcmd and Invoke-Sqlcmd - Stack Overflow

    Mar 22, 2021 · I am trying to learn Sqlcmd utility in PowerShell to run SQL queries, specifically for database administration. Using Version 15.0.1300.359 NT But I got confused, what is the …

  9. SQL Server Express database instance connection error

    Nov 12, 2021 · I am trying to run a SQL script locally using sqlcmd, but I keep getting the following error: Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : SQL Server Network …

  10. Where Is Microsoft Command Line Utilities 16? - Stack Overflow

    Mar 9, 2023 · Problem Statement It seems the latest version of Microsoft's Command Line Utilities aren't at the same version that is distributed with SQL Server 2022. SQL Server 2022 delivers …