Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

What was happening at time x in my db?

 
   Database Help (Home) -> Server RSS
Next:  Find and Replace using SQL  
Author Message
seanD

External


Since: Jan 16, 2009
Posts: 1



(Msg. 1) Posted: Fri Jan 16, 2009 4:19 pm
Post subject: What was happening at time x in my db?
Archived from groups: microsoft>public>sqlserver>server (more info?)

All,

I am a former Oracle developer who is now needing to develop and do
some admin type things in sql server 2005. I am trying to track down
the cause of database timeouts that happen sporadically in a .Net app
due to timeouts occuring with database queries (sp calls and
inserts). I have a simple insert query that occasionally times out.
The query should be very fast (subsecond when run in SSMS usually) My
assumption is that the query is being blocked by something else and
that's why it times out.

My question(finally) is a very general one. How can I best
troubleshoot locks/waits/long running sql that happened sometime in
the past if I was not tracing at the time it happened? The areas I am
currently reading are: Performance views (like
sys.dm_os_waiting_tasks , dm_tran_locks ) but isn't it the case that
the data disappears from these after a certain point, like when query
plans go away?

So, I'm just looking for the preferred method to find out what was
happening on my database at a given past point in time around a
certain event.

Any links or where to start would be great,

thanks in advance

 >> Stay informed about: What was happening at time x in my db? 
Back to top
Login to vote
John Bell

External


Since: Jun 01, 2004
Posts: 652



(Msg. 2) Posted: Sat Jan 17, 2009 12:25 am
Post subject: Re: What was happening at time x in my db? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"seanD" wrote in message

> All,
>
> I am a former Oracle developer who is now needing to develop and do
> some admin type things in sql server 2005. I am trying to track down
> the cause of database timeouts that happen sporadically in a .Net app
> due to timeouts occuring with database queries (sp calls and
> inserts). I have a simple insert query that occasionally times out.
> The query should be very fast (subsecond when run in SSMS usually) My
> assumption is that the query is being blocked by something else and
> that's why it times out.
>
> My question(finally) is a very general one. How can I best
> troubleshoot locks/waits/long running sql that happened sometime in
> the past if I was not tracing at the time it happened? The areas I am
> currently reading are: Performance views (like
> sys.dm_os_waiting_tasks , dm_tran_locks ) but isn't it the case that
> the data disappears from these after a certain point, like when query
> plans go away?
>
> So, I'm just looking for the preferred method to find out what was
> happening on my database at a given past point in time around a
> certain event.
>
> Any links or where to start would be great,
>
> thanks in advance

Hi

You may want to look at running a trace or using SQL Profiler, alternatively
look at http://support.microsoft.com/kb/271509

John

 >> Stay informed about: What was happening at time x in my db? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQL Server Time - I have to two database on one server. Each database belongs to different client. For ex. one database name is CHINA for China and one database name is USA for USA. Is there way I can set CHINA database with china time and setup USA database with USA...

Time out Error - Hi, We have cold fusion application that runs over SQL server 2000 database and IIS web server. Sometimes(recently) we get "Request timed out" error message in application log file. Our highest traffic was in January where we did not get any...

query time out - What is best setting for query time out 600 or 0 , unlimited . and why?

%Disk Time - Dear All, I am doing a performance analysis for one of my customer. After analysis of the perfmon logs I foundout average _Total %DiskTime is around 140, when I did a details analysis I found the data drive %DiskTime is 90% of the _Total %DiskTime. Now...

Time-Out Error - We are getting the folowing error on our MTS server where we have our application. It is going againts a Windows 2000 SP4 server that has SQL Server 2000 SP4. It is using something called "ExecShape" (I am not sure what it is). Where do I ...
   Database Help (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]