Friday, November 26, 2010

Thursday, November 25, 2010

SQl Server Blocking Detection

here is a good script that can be run when a SQL block occurs.

http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/



SELECT
db.name DBName,
tl.request_session_id,
wt.blocking_session_id,
OBJECT_NAME(p.OBJECT_ID) BlockedObjectName,
tl.resource_type,
h1.TEXT AS RequestingText,
h2.TEXT AS BlockingTest,
tl.request_mode
FROM sys.dm_tran_locks AS tl
INNER JOIN sys.databases db ON db.database_id = tl.resource_database_id
INNER JOIN sys.dm_os_waiting_tasks AS wt ON tl.lock_owner_address = wt.resource_address
INNER JOIN sys.partitions AS p ON p.hobt_id = tl.resource_associated_entity_id
INNER JOIN sys.dm_exec_connections ec1 ON ec1.session_id = tl.request_session_id
INNER JOIN sys.dm_exec_connections ec2 ON ec2.session_id = wt.blocking_session_id
CROSS APPLY sys.dm_exec_sql_text(ec1.most_recent_sql_handle) AS h1
CROSS APPLY sys.dm_exec_sql_text(ec2.most_recent_sql_handle) AS h2
GO

Thursday, October 21, 2010

The fire

We have not put the heating on yet. We have been enjoying the fire. Very nice



Monday, October 18, 2010

How to transfer filezilla server settings

You can easily trasfer all settings from one filezilla server to another by copying the filezilla server.xml from one server to another

stop filezilla server
copy in filezilla server.xml
start filezilla server

How to check for a postmaster in Exchange 2007

http://www.petri.co.il/creating-a-postmaster-mailbox-in-exchange-server-2007.htm

Servers:2008:IIS7:urlrewrite

http://learn.iis.net/page.aspx/803/using-custom-rewrite-providers-with-url-rewrite-module/