SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 waitresource colum
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

basicconfiguration
Constraint Violating Yak Guru

357 Posts

Posted - 07/24/2013 :  15:44:56  Show Profile  Reply with Quote
waitresource column doesn't indicate if it's a page, KEY, TAB. How can I tell what it is. Look at the result below.

319 491 0 0x0003 SELECT 5:72057594042515456 (20c5eaeb69e4)

MuMu88
Aged Yak Warrior

547 Posts

Posted - 07/24/2013 :  20:18:18  Show Profile  Reply with Quote
Refer to these pages:
http://www.sqlservercentral.com/Forums/Topic16430-5-1.aspx

http://www.practicalsqldba.com/2012/04/sql-server-deciphering-wait-resource.html

Edited by - MuMu88 on 07/24/2013 20:20:10
Go to Top of Page

basicconfiguration
Constraint Violating Yak Guru

357 Posts

Posted - 07/29/2013 :  16:55:48  Show Profile  Reply with Quote
Thanks MuMu. However the links were not useful.

I used this and ran it against the right db. However it returns nothing.

SELECT
o.name AS TableName,
i.name AS IndexName,
SCHEMA_NAME(o.schema_id) AS SchemaName
FROM sys.partitions p JOIN sys.objects o ON p.OBJECT_ID = o.OBJECT_ID
JOIN sys.indexes i ON p.OBJECT_ID = i.OBJECT_ID AND p.index_id = i.index_id
WHERE p.hobt_id = 72057594042515456
Go to Top of Page

MuMu88
Aged Yak Warrior

547 Posts

Posted - 07/29/2013 :  20:47:28  Show Profile  Reply with Quote
Try the query without WHERE clause:

SELECT 
 o.name AS TableName, 
i.name AS IndexName,
SCHEMA_NAME(o.schema_id) AS SchemaName
FROM sys.partitions p JOIN sys.objects o ON p.OBJECT_ID = o.OBJECT_ID 
JOIN sys.indexes i ON p.OBJECT_ID = i.OBJECT_ID AND p.index_id = i.index_id 


How are you getting your waitresource?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000