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
>
sql server 2008
Tagged Content List
Blog Post:
Auditing SQL Agent job creation and deletion
Sethu Srinivasan
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. You can turn on Auditing to track and log stored...
on
21 Feb 2011
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:
Create a database backup job using SQL Server Management Studio
Sethu Srinivasan
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 at http://www.microsoft.com/info/cpyright.htm
on
13 Oct 2010
Blog Post:
Create SQL Agent job using SMO
Sethu Srinivasan
# Powershell script to create a new Agent job and list the job using JobCollection # Inspects error collection and prints all inner exception function CheckForErrors { $errorsReported = $False if ( $Error . Count - ne 0 ) { write-host "******************************" write-host "Errors:" , $Error . Count...
on
16 Jun 2010
Blog Post:
Change Service Account Password for Sql Server / SQL Agent Accounts
Sethu Srinivasan
changeSvcAcct.ps1 ########################################################################################### # Scenario:Change Service account for SQL Server, Agent services # # How to use this powershell script: # - Launch SQL Server PowerShell ( Start -> Run -> sqlps.exe) # - Copy the following...
on
3 Feb 2010
Blog Post:
Troubleshooting Arithmetic overflow errors in queries using Extended Events in SQL Server 2008
Sethu Srinivasan
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 version of a complex T-SQL batch SELECT session_id...
on
9 Sep 2009
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 (12 items)