Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Using the SQLCMD in SQL Server 2005 Expand / Collapse
Author
Message
Posted Monday, January 17, 2005 9:41 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, November 21, 2008 9:10 AM
Points: 11, Visits: 5
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/AVigneau/usingthesqlcmdinsqlserver2005.asp


Kindest Regards,

Andre Vigneau MCSE, MCDBA

Post #156020
Posted Friday, February 4, 2005 11:33 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, December 5, 2012 2:59 PM
Points: 26, Visits: 63

Very cool method to accomplish the task at hand, currently in SQL7 & 2000 I use a SQL Agent job to run a proc looking for blocking, if a block is found. I call & feed a file of commands to OSQL which pulls the lead blockers spid,then runs input buff & pss DBCC commands, next passes lead blockers spid to sp_lock1(modified version) all piped to a txt file, we then get some info from sysprocesses regarding are offender,  next enable dead lock traces - do a wait... disable the traces. Pages on this are as follows: sends a page to the db when blocking is first found, page to let dba know good error levels came back from trace being enbled, again page to ensure traces were disabled successfully.(Nice run on and on sentence, sorry) We then check pipe file and bingo there usually is the root cause all the objects involved. We gear the time of blocking to alarm on depending on how troublesome the server is and how often to even check for this type of condition.

 

sqlscripters@hotmail.com




Post #159783
Posted Thursday, February 28, 2008 12:48 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 28, 2008 12:47 PM
Points: 3, Visits: 3
all the links in the article are broke now.


Post #461939
Posted Thursday, May 29, 2008 7:20 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Saturday, August 16, 2014 5:48 AM
Points: 1,862, Visits: 3,602
Yes, links don't work any more. Any chance they can be restored?

__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #508365
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse