Viewing 15 posts - 1,531 through 1,545 (of 1,957 total)
Hi Grant,
Thanks for that comment, but the trace is actually writing to a file on a separate physical disk, the the StopPerfTrace SP reads it in using fn_trace_gettable.
I am pretty...
February 4, 2011 at 7:24 am
have you tried starting SQL with the -f switch?
-f
Starts an instance of SQL Server with minimal configuration. This is useful if the setting of a configuration value (for example, over-committing...
February 4, 2011 at 6:08 am
Can I please ask why you need the output in a certain order?
XML is not normally used in that way (at least not in my experience) and I find it...
February 4, 2011 at 5:18 am
No, sorry I never use that.
February 4, 2011 at 4:37 am
You are referencing the node incorrectly. Try this (the text() function is used because it is slightly quicker ):
DECLARE @xmlString XML = N'<TAG1><A>1</A><A>2</A><A>3</A><A>4</A><A>5</A><A>6</A></TAG1>'
SELECT doc.col.value('./text()[1]','INT') AS A
FROM @xmlString.nodes('/TAG1/A')doc(col)
February 4, 2011 at 2:19 am
Would it work? That all depends - if those were the only two triggers in use then yes - if you get rid of the ELSE - it is not...
February 3, 2011 at 12:24 pm
I would code the front end to check for duplicates and warn the user.
You won't get anything useful from a trigger unless you have a "known duplicate" column in the...
February 3, 2011 at 11:48 am
OF course, if those are the real triggers, then are you not showing us the delete from the "other" database table in the first trigger?
Just checking because it won't work...
February 3, 2011 at 11:41 am
ae_from_pa (2/3/2011)
======
ALTER TRIGGER [dbo].[UPDATE_EMAIL_IN_HEAT] ON [dbo].[CONTSUPP]
FOR...
February 3, 2011 at 11:37 am
Did you read the code I posted - that will do what you want....?
February 3, 2011 at 11:32 am
Sorry I don't see why you need to Loop one row at a time.
I am sure if you explain what you are trying to do someone will come up...
February 3, 2011 at 6:31 am
To add some more context to the trigger would help...
In your first database, use
DECLARE @ci VARBINARY(128) = CAST(DB_NAME() AS VARBINARY(128));
SET CONTEXT_INFO @ci;
And in the second, use:
IF CONVERT(VARCHAR(50),CONTEXT_INFO()) <> DB_NAME()...
February 3, 2011 at 4:21 am
Hi, did you try this?
IF TRIGGER_NESTLEVEL()>1 RETURN
February 3, 2011 at 2:22 am
Thanks for the article.
I personally was disappointed to find that it was not about rebuilding the master database as the title said it would be though...
February 3, 2011 at 2:16 am
Viewing 15 posts - 1,531 through 1,545 (of 1,957 total)