Viewing 15 posts - 1 through 15 (of 19 total)
Hi...
I wonder if this would be helpful. I looked for system views that displayed this information, and I couldn't find any.
I did a google search and came across a few...
February 21, 2016 at 6:17 am
I discovered that the queries in question were victims because of SQL jobs running causing them to die. Just seems odd that the duration would go so long. I can't...
July 13, 2010 at 10:08 am
Very good advice. I love this site and the books offered for free have helped my knowledge tremendously. Dissecting SQL Execution Plans.... Perfect for tuning SQL.
January 19, 2010 at 7:03 am
No cursors were used. 150,000+ records took an hour to change, yup, bad, bad, bad. Those 150,000 could have had many more charges associated with the records. Both tables that...
January 18, 2010 at 6:43 pm
I rewrote the script.
Got it down to an hour. 🙂
January 18, 2010 at 11:32 am
I will put your advice to good work. It is very good.
Thank you for the help. I appreciate it.
January 8, 2010 at 10:57 am
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[test]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[test]
GO
CREATE TABLE [dbo].[test] (
[order] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[year] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS...
January 8, 2010 at 9:50 am
That is a great example for how to accomplish something I described without a cursor.
Here we write cursors because it is pre-determined and believed that it keeps better data...
January 8, 2010 at 7:22 am
The idea is to originally grab all duplicates in the users table and then scan through the financial_Reports and replace the value of the identified duplicate users highest ID with...
January 7, 2010 at 1:32 pm
After some thought... I been thinking about that myself but haven't been able to figure out how to identify myself...
It's best to say we want the lowest ID... So...
January 7, 2010 at 1:19 pm
The problem had to do with a bad implementation. That root cause was identified and resolved. There is a lot of data pointing to old users that no longer use...
January 7, 2010 at 12:26 pm
Here's where you give us a verbal description of how we can logically get to the answer. Given the example results you want to get, what makes your final result...
January 6, 2010 at 2:56 pm
I didn't mean to upset anyone. My goal is to become a more efficient SQL programmer. I have a difficult time explaining myself as it is. I apologize.
January 6, 2010 at 2:41 pm
Say a user exists two times 'John Doe'.
Someone does a accounting review for a customer and a report is generated, there is a window when you search for the...
January 6, 2010 at 2:39 pm
The result I would like to see is:
For every ID where exist in one of the five columns a 1 and a 2, I want to replace the value with...
January 6, 2010 at 2:15 pm
Viewing 15 posts - 1 through 15 (of 19 total)