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. Lesson Learned #387:Monitoring Query Data Store State Changes in …

    Jun 29, 2023 · Conclusion In this article, we have explored how to monitor and track changes in the Query Data Store state in Azure SQL Database using PowerShell and SQLClient. By regularly …

  10. What is the most effective way to discover all running instances of SQL ...

    I've been tasked with discovering all the instances of SQL Server that are running within our domain. In several cases there are multiple instances per server. I've seen two different PowerShell me...