SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Using the SQLCMD in SQL Server 2005


Using the SQLCMD in SQL Server 2005

Author
Message
Andre Vigneau
Andre Vigneau
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 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

SQLShark
SQLShark
Old Hand
Old Hand (396 reputation)Old Hand (396 reputation)Old Hand (396 reputation)Old Hand (396 reputation)Old Hand (396 reputation)Old Hand (396 reputation)Old Hand (396 reputation)Old Hand (396 reputation)

Group: General Forum Members
Points: 396 Visits: 232

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





eengler
eengler
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 3
all the links in the article are broke now.



Marios Philippopoulos
Marios Philippopoulos
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4746 Visits: 3758
Yes, links don't work any more. Any chance they can be restored?

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search