Sign In
Sethu's blog
dev@sqlservr.microsoft
MSDN Blogs
>
Sethu's blog
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Sethu's blog
Powershell script to run query against many servers and send combined output as email
Posted
1 month ago
by
Sethu Srinivasan
0
Comments
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...
Sethu's blog
SQL Server 2012 Unattended installation
Posted
1 month ago
by
Sethu Srinivasan
0
Comments
http://sethusrinivasan.wordpress.com/2011/12/19/sql-server-2012-unattended-installation/
Sethu's blog
SQL Server Denali CTP3 on Windows 2008 R2 Server Core
Posted
7 months ago
by
Sethu Srinivasan
0
Comments
http://sethusrinivasan.wordpress.com/2011/07/12/sql-server-denali-ctp3-on-windows-2008-r2-server-core/ This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified...
Sethu's blog
Gathering list of databases names from multiple SQL Servers
Posted
8 months ago
by
Sethu Srinivasan
0
Comments
# serverList.txt has name of fully qualified sql instance ( one per line) # Example entries: # server1 # server1\instance1 $instanceNameList = Get-Content C:\ServerList.txt foreach ($instanceName in $instanceNameList...
Sethu's blog
Auditing SQL Agent job creation and deletion
Posted
11 months ago
by
Sethu Srinivasan
0
Comments
SQL Agent jobs are added / removed using stored procedure interface sp_add_job and sp_delete_job. Customers have asked us how we could track user who has created a job / deleted a specific job. You could accomplish this using SQL Server Auditing feature...
Sethu's blog
Starting Jobs in Powershell using Job Name
Posted
over 2 years ago
by
Sethu Srinivasan
0
Comments
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...
Sethu's blog
Scheduled Policy Evaluation on multiple servers using MSX/ TSX in SQL Agent
Posted
over 2 years ago
by
Sethu Srinivasan
0
Comments
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:/...
Sethu's blog
Turning on Verbose logging in SQL Agent
Posted
over 2 years ago
by
Sethu Srinivasan
0
Comments
Turning on Verbose logging in SQL Agent 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
Sethu's blog
Create a database backup job using SQL Server Management Studio
Posted
over 2 years ago
by
Sethu Srinivasan
1
Comments
SQL Server Management Studio can be used to create a database backup job to backup an user database. Link This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified...
Sethu's blog
SQL Agent team blog
Posted
over 2 years ago
by
Sethu Srinivasan
0
Comments
SQL Agent development team members have started a blog to write articles related to SQL Agent, Database Mail, data collector. Please send us topics, areas you would like us author articles that you would be intersted in. Here is the link to SQl Agent...
Sethu's blog
Create SQL Agent job using SMO
Posted
over 2 years ago
by
Sethu Srinivasan
0
Comments
Create SQL Agent job and enumerate this job using SMO JobCollection
...
Sethu's blog
Change Service Account Password for Sql Server / SQL Agent Accounts
Posted
over 2 years ago
by
Sethu Srinivasan
0
Comments
changeSvcAcct.ps1 ########################################################################################### # Scenario:Change Service account for SQL Server, Agent services # # How to use this powershell script: # - Launch SQL Server PowerShell ( Start...
Sethu's blog
Troubleshooting Arithmetic overflow errors in queries using Extended Events in SQL Server 2008
Posted
over 3 years ago
by
Sethu Srinivasan
0
Comments
Problem: Management view sys.dm_exec_requests has a column total_elapsed_time to track the total time elapsed in milliseconds since the request arrived. Following T-SQL query converted this value from milli-seconds to micro-seconds. -- Simplified...
Sethu's blog
Execute a query on servers in Central Management Server Group
Posted
over 3 years ago
by
Sethu Srinivasan
1
Comments
MultiServerQuery.ps1 # Scenario: Execute a query on servers listed in Central Managment Server Group # # How to use this powershell script: # - Launch SQL Server PowerShell ( Start -> Run -> sqlps.exe) # - Copy the following powershell script and...
Sethu's blog
Enable / Disable protocols in SQL Server using PowerShell
Posted
over 4 years ago
by
Sethu Srinivasan
0
Comments
EnableProtocols.ps1 ########################################################################################### # Scenario: Enable / Disable protocols in SQL Server # ( Thanks Michiel http://blogs.msdn.com/mwories/ for helping me out) # # How to use this...
Sethu's blog
Configure Database Mirroring using SQL 2008 Power Shell
Posted
over 4 years ago
by
Sethu Srinivasan
0
Comments
########################################################################################### # Scenario: Configure Database mirroring # # How to use this powershell script: # - Launch SQL Server PowerShell ( Start -> Run -> sqlps.exe) # - Copy the...
Sethu's blog
SQL 2008 powershell script to print Resource Governor properties
Posted
over 4 years ago
by
Sethu Srinivasan
1
Comments
########################################################################################### # SQL 2008 powershell script to print Resource Governor state, properties, Resource pools and corresponding workload groups # # How to use this powershell script...
Sethu's blog
SQL 2008 Powershell Script for creating a Policy and saving to file
Posted
over 4 years ago
by
Sethu Srinivasan
1
Comments
########################################################### # 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...
Sethu's blog
SQL Powershell - Unrestrict Growth size on all Database Files that has AutoGrowth set as None
Posted
over 4 years ago
by
Sethu Srinivasan
0
Comments
########################################################################################### # 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...
Sethu's blog
Create backups for databases that were not backed up during last 1 day
Posted
over 4 years ago
by
Sethu Srinivasan
0
Comments
a) Install SQL Server 2008. You can get RC0 from here: Download SQL 2008 RC0 b) Launch SQL Server Management Studio ( Start -> All Programs -> Microsoft SQL Server 2008 -> SQL Server Management Studio) c) Connect to SQL Server instance...
Sethu's blog
SQL 2008 Power Shell script - Databases that were not backed up in last 7 days
Posted
over 4 years ago
by
Sethu Srinivasan
0
Comments
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...
Page 1 of 1 (21 items)
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Common Tasks
Blog Home
Email Blog Author
About
OK
RSS for comments
RSS for posts
Atom
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Extended Events
Policy Based Management
PowerShell
Resource Governor
SMO
SQL Agent
SQL Server
SQL Server 2008
Troubleshooting
Monthly Archives
Archives
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)