News

I’ve created a script that monitors a table in a SQL Server database. I’m only interested in one column in the table: TimeStamp. If the maximum (newest) value in TimeStamp is more than 30 ...
This is when you need to focus on automation tools like Windows PowerShell. To query any SQL database from PowerShell, you need to have the SQLPS module installed along with a few supporting packages.
SQL Advisor. Query SQL Server with PowerShell. Get the right information on your SQL Servers via the Get-Service cmdlet. By Joshua Jones; 03/10/2011; Last time, I discussed how to get PowerShell and ...
There are lots of ways to create MSSQL databases via PowerShell. We could invoke a T-SQL query using the CREATE DATABASE term, we could write some code to use the [Create() method with SMO] or, if ...
Paste your SQL queries into the Queries folder. In the Queries folder you will find 10 queries which are the Glenn Berry's Diagnostic Information Queries 2012; you can replace them with your preferred ...
SQL queries can be passed as strings to the Cmdlet using the PowerShell Pipeline and will be processed sequentially. In turn, a string can contain multiple queries separated by a semicolon. If it is a ...
Posey's Tips & Tricks. PowerShell Desktop AI Revisited, Part 3: Query Processing. The third installment in this PowerShell AI series explores how user queries are processed and answered using a ...