Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Powershell - Export Stored Proc results to CSV file

By Mandeep Dulai,

Step 1 - Run SQL Script to create table to hold file configuration values ( eg. file name, path)

Step 2 - Create a SQL Agent job with a step of type Powershell and copy and paste the powershell script into the step

Total article views: 2195 | Views in the last 30 days: 5
 
Tags
powershell    
 
Contribute