Viewing 15 posts - 7,621 through 7,635 (of 8,416 total)
This is one reason that I bear the pain of having IMPLICIT_TRANSACTIONs turned on in my SSMS settings.
It is nice to be able to issue a ROLLBACK after something like...
June 24, 2009 at 6:42 pm
Ow. This thread hurts my eyes and my ears! 😛
June 24, 2009 at 6:38 pm
So, having read the requirements a bit more thoroughly:Whistling: here's a quick hack which seems to work:
ALTER TRIGGER [dbo].[trig_test_insert]
ON [dbo].[cnsmr_accnt]
INSTEAD OF INSERT
AS
BEGIN
IF@@ROWCOUNT = 0 RETURN;
SET NOCOUNT ON;
SET ROWCOUNT 0;
;WITHUnioned AS
(
SELECTi.cnsmr_id,
i.cnsmr_accnt_id,
i.case_feed
FROMinserted...
June 24, 2009 at 4:26 pm
Carl,
So I've read the thread a little more thoroughly now and hacked together something that appears to work.
See the original thread.
Paul
June 24, 2009 at 4:24 pm
Carl Federl (6/24/2009)
Paul, did not see this post until after I replied but we are getting the same result. I am going to start a new post thread.
Cool. ...
June 24, 2009 at 4:00 pm
An actual execution plan would be much more useful than estimated plans (we could see the run-time distribution of data across the threads for example).
In the posted plans, the PIVOT...
June 24, 2009 at 3:48 pm
Carl Federl (6/24/2009)
June 24, 2009 at 3:36 pm
For the record, the script Carl posted runs fine and produces the expected output on my 2005 and 2008 servers.
(that was the one saying ROW_NUMBER might not be working in...
June 24, 2009 at 3:32 pm
Florian Reischl (6/24/2009)
I knew that any other constant expression should work equal. Just been unsure about the NULL.
Oh I see.
I guess I started using NULL because it somehow emphasises the...
June 24, 2009 at 3:16 pm
Carl Federl (6/24/2009)
June 24, 2009 at 3:14 pm
Hey Flo,
Nope - no difference at all, it just depends on my mood 🙂
ROW_NUMBER() OVER (ORDER BY (SELECT -42.7))
...works just as well.
Paul
June 24, 2009 at 9:08 am
winston Smith (6/24/2009)
your correct, im only an admin on the server, not on the domain.
That would do it!
🙂
June 24, 2009 at 8:35 am
Sure.
In some cases, one would want to add RECOMPILE to the procedure.
In others, just to one or more statements in the procedure.
In still others, to the procedure call itself.
I guess...
June 24, 2009 at 8:23 am
sqlguru (6/24/2009)
Formatting is a front-end/middle-tier responsibility, why are you doing it in a RDMS where it is slower?
Perhaps because he was told to?
Just sayin'.
😀
June 24, 2009 at 8:20 am
Viewing 15 posts - 7,621 through 7,635 (of 8,416 total)