About 53,300 results
Open links in new tab
  1. How do you run a SQL Server query from PowerShell?

    There isn't a built-in "PowerShell" way of running a SQL query. If you have the SQL Server tools installed, you'll get an Invoke-SqlCmd cmdlet. Because PowerShell is built on .NET, you can …

  2. How to execute sqlcmd from powershell? - Stack Overflow

    Invoke-Sqlcmd is a SQL Server cmdlet that runs scripts that contain statements from the languages (Transact-SQL and XQuery) and commands that are supported by the sqlcmd …

  3. Run SQL script file from powershell - Stack Overflow

    Apr 23, 2014 · The better route is to use the PowerShell method you already have available - Invoke-SQLCmd is installed if you have installed any of the SQL Server 2008 (or newer) …

  4. Executing sql command in powershell script - Stack Overflow

    I want to execute simple sql commands that I do on command by directly entering, but I want to do that using Powershell script, don't want to do the commands using powershell API but by …

  5. Retrieving data using select SQL statement in Powershell

    Nov 18, 2009 · If you are using SQL Server 2008 you should consider using the cmdlets that are available to PowerShell such as Invoke-SqlCmd that can be used to execute queries against a …

  6. Running Powershell scripts through SQL - Stack Overflow

    When i run the script from the command shell or from the Poershell ISE my data is inserted into the table and every thing works fine; When i run it from within SQL nothing happens. I get no …

  7. Powershell Invoke-SQLCmd and SQLPS - Stack Overflow

    Oct 16, 2015 · Modules: SQLPS: This module is included with the SQL Server installation (for backwards compatibility), but is no longer being updated. The most up-to-date PowerShell …

  8. Using Powershell get Values from sql table - Stack Overflow

    May 30, 2015 · The SQL Server Powershell provider uses SMO to expose the database object hierarchy. Once you get a SMO child item, you can invoke the corresponding SMO methods …

  9. sql server - SQL installed but powershell not picking up sqlps …

    May 3, 2017 · The explanation is that until 2016 SQLPS module was included with the SQL Server installation, but the PowerShell module which we use is the 'SqlServer' module. …

  10. How to execute SqlCommand in PowerShell? - Stack Overflow

    Oct 29, 2021 · - PowerShell cmdlets, scripts and functions are invoked like shell commands, not like methods. That is, no parentheses around the argument list, and whitespace-separated …

Refresh