Viewing 15 posts - 3,331 through 3,345 (of 6,036 total)
Kenneth Wilhelmsson (11/1/2007)
Would you care to...
November 1, 2007 at 1:13 pm
I used loop to guarantee the order of INSERTING the rows.
Are you agree that ORDER OF INSERTING was the same for both tables?
So, what the SELECT proves in this case?
P.S....
November 1, 2007 at 3:22 am
Kenneth,
they are too dumb to put some effort into explaining how SQL Server works to them.
Perfect members of the community. 😀
They were informed about the error right in the...
October 31, 2007 at 6:23 pm
And clustered index on DATE columns for both tables would help A LOT.
If it's impossible try (not on production, if possible :))
[Code]
DELETE A
FROM TABLE_A A
INNER JOIN (
select...
October 31, 2007 at 4:29 pm
Then go with your loop.
Just add
WAITFOR DELAY '00:00:02'
to let other Server to pay attention to other processes.
You may also include something like this:
[Code]-- Before entering the loop
...
October 31, 2007 at 4:20 pm
It's done in front end application - EM.
Same about datetime values.
October 31, 2007 at 3:40 pm
These are kind of contradicting each other:
/* update all users in same agency profile */
....
AND [UserId] = @Original_UserId);
Second update does not look right to me at all.
Not because of SQL...
October 31, 2007 at 1:45 pm
rmcknight (10/31/2007)
I'm looking for gaps in the sequence. The ID and Code are just record fields, and I need to know if someone skipped a sequence number....
October 31, 2007 at 6:07 am
rog pike (10/30/2007)
The entire sql community,that means MS, Oracle, IBM etc., acknowledged before 1999 that sql
cannot offer an efficient solution to ranking or cummulative aggregate
queries.
I don't care about entire...
October 31, 2007 at 3:28 am
If they believe they know how to do database and queries, and you think they don't then don't argue, just sit and prepare set of scripts to populate their tables...
October 30, 2007 at 9:10 pm
Another thing:
1st query will perform one transaction, 2nd will do 2 transactions.
But your performance hit definitely is caused by grouping invoked by UNION.
You should also take into consideration the fact...
October 30, 2007 at 7:04 pm
Kenneth Wilhelmsson (10/30/2007)
I'll just quote it from the guys who wrote the stuff we're all using:
Nobody is perfect.
Don't ever copy someone's words without good thinking about it, no matter how...
October 30, 2007 at 2:57 pm
David, you should take care of it in front end.
If value in text box is '' then you pass NULL in SP, if it any kind of integer value you...
October 30, 2007 at 1:10 pm
David (10/30/2007)
Jez, a paramater IS passed. If '' is passed, need all records. If 0 or any other number is passed, need the record for that number.
You declare a...
October 30, 2007 at 1:01 pm
Kenneth Wilhelmsson (10/30/2007)
So you agree? 😉
With what?
'Not always useful' does mean that it does have it's usefulness?
At the end of the day, the execution plan is what decides how things...
October 30, 2007 at 6:05 am
Viewing 15 posts - 3,331 through 3,345 (of 6,036 total)