Viewing 15 posts - 226 through 240 (of 1,473 total)
dbcc inputbuffer should not be returning trigger code. fn_get_sql will, but DBCC Inputbuffer should not.
Are you sure you're seeing that function's result and not the other one?
March 31, 2010 at 8:08 am
Reposted to SS2K5 Forum, no more replies here please.
March 30, 2010 at 12:40 pm
Not a problem at all Tom. Does DBCC INPUTBUFFER not return the data you are looking for? If you're looking for the statement right before the trigger that...
March 30, 2010 at 11:36 am
Spoke too soon, yes it does, my fault:
DECLARE @Example
TABLE (
field1 VARCHAR(30) NULL,
...
March 30, 2010 at 9:02 am
It doesn't when I run Paul's Code:
DECLARE @Example
TABLE (
field1 VARCHAR(30) NULL,
field2...
March 30, 2010 at 9:00 am
Are you aware you're selecting out of a different table than you're dropping/creating/populating?
March 30, 2010 at 8:18 am
Thanks for solving that mystery Sergiy. That woulda bugged me for weeks.
March 29, 2010 at 10:39 pm
Ian Yates (12/9/2005)
March 29, 2010 at 10:38 pm
Heh, ok, I don't know what I was thinking when I linked that. I guess I should have actually tested that first. That code was all wrong, I...
March 29, 2010 at 4:40 pm
douglas.allison-1136597 (3/29/2010)
Thanks for that the formatting is not the messy part as when I see it on Manager ets it's all tastefully indented etc.
Will have a look laters at...
March 29, 2010 at 10:59 am
Ordinarily, I'd have said that Dynamic SQL would likely have fixed the issue, but you can't use that within your function. I think you're on the right track with...
March 29, 2010 at 9:49 am
It's an order of operations thing. If you look at the execution plans, the sort doesn't come until after the compute scalar. Removing the order by, removing the...
March 29, 2010 at 9:43 am
My pleasure Tom, glad I could help.
March 28, 2010 at 1:12 pm
Viewing 15 posts - 226 through 240 (of 1,473 total)