Sign in
Sethu's blog
dev@sqlservr.microsoft
Common Tasks
Blog Home
Email Blog Author
About
OK
RSS for comments
RSS for posts
Atom
Search Form
Tag Cloud
Extended Events
Policy Based Management
PowerShell
Resource Governor
SMO
SQL Agent
SQL Server
SQL Server 2008
Troubleshooting
Monthly Archives
Archives
November 2012
(1)
October 2012
(1)
January 2012
(1)
December 2011
(1)
July 2011
(1)
June 2011
(1)
February 2011
(1)
December 2010
(1)
November 2010
(1)
October 2010
(2)
September 2010
(1)
June 2010
(1)
February 2010
(1)
September 2009
(1)
April 2009
(1)
October 2008
(1)
July 2008
(1)
June 2008
(5)
Browse by Tags
MSDN Blogs
>
Sethu's blog
>
All Tags
>
powershell
Tagged Content List
Blog Post:
Workaround: 'sqlps' and "Test-Path" PowerShell cmdlet on a UNC path
Sethu Srinivasan
Related Forum thread: http://social.msdn.microsoft.com/Forums/en-US/sqlsmoanddmo/thread/719ede23-9f1a-43f5-8c4e-8188fea0b19f/ Related Connect feedback: https://connect.microsoft.com/SQLServer/feedback/details/768743/sql-server-2012-import-module-sqlps-breaks-the-test-path-powershell-cmdlet Issue...
on
3 Nov 2012
Blog Post:
Powershell script to script out tables with dependencies along with enforced declarative referential integrity
Sethu Srinivasan
on
1 Oct 2012
Blog Post:
Powershell script to run query against many servers and send combined output as email
Sethu Srinivasan
Sample code to run query against multiple SQL Servers and export the combined output to Excel. This generated excel file is later sent as email attachment using hotmail. Related email thread: http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/987d48c0-a82d-4424-8699-cdd0b2bc9c51 ...
on
11 Jan 2012
Blog Post:
Starting Jobs in Powershell using Job Name
Sethu Srinivasan
http://blogs.msdn.com/b/sqlagent/archive/2010/12/29/starting-jobs-in-powershell-using-job-name.aspx This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
on
29 Dec 2010
Blog Post:
Scheduled Policy Evaluation on multiple servers using MSX/ TSX in SQL Agent
Sethu Srinivasan
One of our customer was looking for ways to schedule a policy evaluation on multiple servers using their existing MSX/TSX infrastructure. I thought it would be better to blog an article that could help others looking for similar information http://blogs.msdn.com/b/sqlagent/archive/2010/11/19/scheduled...
on
19 Nov 2010
Blog Post:
Configure Database Mirroring using SQL 2008 Power Shell
Sethu Srinivasan
########################################################################################### # Scenario: Configure Database mirroring # # How to use this powershell script: # - Launch SQL Server PowerShell ( Start -> Run -> sqlps.exe) # - Copy the following powershell script and save to file (Ex...
on
7 Jul 2008
Blog Post:
SQL 2008 powershell script to print Resource Governor properties
Sethu Srinivasan
########################################################################################### # SQL 2008 powershell script to print Resource Governor state, properties, Resource pools and corresponding workload groups # # How to use this powershell script: # - Launch SQL Server Management Studio ( Start...
on
18 Jun 2008
Blog Post:
SQL 2008 Powershell Script for creating a Policy and saving to file
Sethu Srinivasan
########################################################### # SQL 2008 Powershell Script for Policy Based Management # Scenario: Create a server policy to check if XPCmdShell is disabled and save it to file # # To run this Powershell script # 1) Install SQL Server 2008 # 2) Run SQL PowerShell ( Start...
on
16 Jun 2008
Blog Post:
SQL Powershell - Unrestrict Growth size on all Database Files that has AutoGrowth set as None
Sethu Srinivasan
########################################################################################### # Scenario: Unrestrict Growth size on all Database Files that has AutoGrowth set as None # The following SQL 2008 Powershell sample code enumerates all user database data files and sets Autogrowth by 10% # # How...
on
12 Jun 2008
Blog Post:
SQL 2008 Power Shell script - Databases that were not backed up in last 7 days
Sethu Srinivasan
a) Install SQL Server 2008. b) Launch SQL Server Management Studio ( Start -> All Programs -> Microsoft SQL Server 2008 -> SQL Server Management Studio) c) Connect to SQL Server instance, Right click on the server node in Object Explorer and click on "Start Power Shell" menu d) Get...
on
10 Jun 2008
Page 1 of 1 (10 items)