Viewing 15 posts - 45,601 through 45,615 (of 49,552 total)
The query being run by the processes is in the st.text column, and it's almost the same as what fn_getSQLHandle would return.
I've used this query for years to track blocking...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 1:04 am
roadtrain64 (7/18/2008)
WEll thanks GailBut
I want to capture blocking_session_id's commands and from where these commands come from?
Did you run my code? The query been run is...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:54 am
Index definitions and execution plan please?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:50 am
Can you post the query please, the table definition, the index definitions and the execution plan?
You get the exec plan by running the query in management studio with the Include...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:36 am
The following form of code will usually deadlock if run enough times.
Connection 1:
WHILE (1=1)
BEGIN
BEGIN TRANSACTION
update Table1 SET SomeNumberField = SomeNumberField +1
WAITFOR DELAY '00:00:30
UPDATE...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:25 am
LISETH_T (7/15/2008)
objDataReader = getReader("Select *...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:20 am
For SQL 2005, try this one. Create a table somewhere then have a SQL agent job doing the insert at whatever interval you like
SELECT er.session_id, blocking_session_id, wait_type, wait_time, wait_resource, database_id,...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:15 am
That error's the generic 'I can't connect' error. It could be because the server doesn't allow remote connections. It could be that the service is stopped, or there could be...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:13 am
Catcha (7/17/2008)
Will above while loop causes deadlock?
Not on its own. Deadlocks require two connections wanting locks that the other connection holds.
It is a really, really inefficient way to do...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:10 am
Unsure (7/17/2008)
Thank you.I will not use 'forceplan'. Will work with just the covering index.
Thanks again.
If you want any suggestions on improving the query more, please post the query, along with...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 18, 2008 at 12:02 am
Shamshad Ali (7/17/2008)
And what about the style for selecting data between start and end?----------------------------------------------------
AND 7/14/2008 BETWEEN s.start_date AND s.end_date
Please start a separate thread for your questions.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 17, 2008 at 11:58 pm
All of the backups, other than the last transaction log backup must be restored WITH NORECOVERY. Once any backup has been restored WITH RECOVERY, no more backups can be applied...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 17, 2008 at 11:57 pm
It might be a concern, it might not. Without the query, that's about all that can be said.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 17, 2008 at 11:54 pm
Provided its from the same version of SQL, it can be restored. See the above link for details on how.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 17, 2008 at 11:53 pm
angie stein (7/17/2008)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 17, 2008 at 11:50 pm
Viewing 15 posts - 45,601 through 45,615 (of 49,552 total)