Open links in new tab
  1. Connecting to SQL Server Using PowerShell | Microsoft Community Hub

    Jan 15, 2019 · First published on MSDN on Nov 30, 2016 In this blog, I would like to show you how we can connect to a SQL Server Instance using PowerShell cmdlets.

  2. Passing credentials to SQL connection string | Microsoft Community Hub

    Jun 15, 2022 · Passing credentials to SQL connection string Hello. I am new to PowerShell and would really appreciate some help! I have a working script (Example A) which allows me to connect to SQL …

  3. Lesson Learned #392:Querying Extended Events and Sending Results …

    Jul 4, 2023 · In this article, we will explore how to leverage PowerShell to query extended events in SQL Server and send the results via email. Extended events provide valuable insights into Azure SQL …

  4. sql server - How to use PowerShell Invoke-Sqlcmd to query and table …

    Aug 19, 2021 · How to use PowerShell Invoke-Sqlcmd to query and table and update a PowerShell $variable? Ask Question Asked 4 years, 5 months ago Modified 4 years, 5 months ago

  5. Generate create/drop external table scripts on Synapse SQL using ...

    May 6, 2020 · One interesting PowerShell script that might be handy is Export-DbaScript that enables you to generate scripts of some selected objects from your database. In Synapse SQL you can list …

  6. Azure SQL Database Token-based authentication with PowerShell

    Apr 6, 2020 · First published on MSDN on Oct 26, 2018 How to connect to Azure SQL Database using token-based authentication in PowerShell native apps This guide assumes you already have a …

  7. Lesson Learned #372:Combining retry policy capabilities for connection ...

    Jun 16, 2023 · This is the ExecuteWithRetry function responsible for executing the SQL command with retry logic. It takes three parameters: retryCount (the number of retries attempted), connection (the …

  8. PnP PowerShell code to connect the sql database and insert and …

    Jul 8, 2023 · PnP PowerShell script to read the data from SharePoint online document library and insert or update the data to the SQL database table based on the...

  9. sql server - PowerShell script to send an email with SQL results in ...

    May 7, 2020 · Does anyone have a PowerShell script to query results from a SQL Server database and send it out as an email in HTML format?

  10. How to query Azure SQL Metrics using Powershell | Microsoft …

    Oct 8, 2020 · One way you can quickly search and query metrics data is using Azure Portal, where you have chart data. But maybe you want to get the raw data and query it...