Viewing 15 posts - 3,646 through 3,660 (of 7,636 total)
ali.m.habib (2/1/2009)
the code insert well in Basic_Statistics tablebut not well in the Secnd_Statistics table
OK:
1) You should not be using cursors for this, and definitely not nested cursors. ...
February 1, 2009 at 12:40 pm
Luke L (2/1/2009)
February 1, 2009 at 12:24 pm
No problem, it happens to all of us. Just glad that I could help. 🙂
February 1, 2009 at 12:17 pm
i would suggest seeing if you can get it to work to that same URL and with that same XML outside of SQL Server.
February 1, 2009 at 12:10 pm
I do not see your listing for the Production.Product table. Since that is the table that your Trigger is on, then that is the format that the INSERTED table...
February 1, 2009 at 11:38 am
Ray M (1/30/2009)
The purpose of the tally table is to store the dates, and you query against it to give you the data you need.
Just to clarify: the purpose of...
February 1, 2009 at 11:23 am
We cannot see the error message from here. Can you tell us what it is?
Thanks,
February 1, 2009 at 11:15 am
OK, I'm back and can test them now...
...And actually, both of these work for me. 🙂
February 1, 2009 at 11:03 am
[Oh wait, maybe it's this...
select @XML.value('(/row/@*[2])[1]','varchar(50)')
Sorry, I don't have time to test these right now... 🙁
February 1, 2009 at 6:50 am
Well I am sure no XML guru either, but doesn't this work?:
select @XML.value('(/row/@*)[2]','varchar(50)')
Though admittedly, every time I think that I have something figured out in XML and then try to...
February 1, 2009 at 6:47 am
Marios, I think that what you gav eus before was the estimated execution plan. Can you get us the actual execution plan? IT should also be avaialable through...
February 1, 2009 at 6:42 am
David F. Straker (1/29/2009)
Does anyone know of a way to use dynamic SQL inside a trigger, in conjunction with the inserted/deleted pseudo-tables of that trigger?
Yes. Use a temporary table:
create...
January 31, 2009 at 10:53 pm
Jeff Moden (1/31/2009)
...work (I hate it)...
Heh. I wouldn't spread that around the office, Jeff. 😀
January 31, 2009 at 10:32 pm
Congratulations, Steve! Now we can honestly say that there's a million reasons to use this site. :w00t:
January 31, 2009 at 10:21 pm
Viewing 15 posts - 3,646 through 3,660 (of 7,636 total)