Viewing 15 posts - 2,446 through 2,460 (of 6,036 total)
Please open BOL on CHECKSUM and read 2nd paragraph of "Remarks".
September 6, 2009 at 10:03 pm
Once again:
ALL DELETED ROWS ARE IN THE TABLE "DELETED".
Just use my code as it is.
September 3, 2009 at 7:36 pm
Please read the manual, BOL in this case.
Topic CREATE TRIGGER.
Table deleted contains only deleted records.
September 3, 2009 at 4:41 pm
CREATE TRIGGER [TRIGDelete] ON [dbo].[TableA]
FOR DELETE
AS
INSERT INTO TableB (Column List)
SELECT Column List
FROM deleted
GO
September 2, 2009 at 10:22 pm
Trigger is a transaction by itself.
It's a part of the transaction which fired the trigger.
It will commit/rollback its own transaction automatically depending if there was an error during execution.
You cannot...
September 1, 2009 at 11:54 pm
What are the data types for e.num_dist and e.bb_ind ?
August 31, 2009 at 6:57 pm
Google "book on line SQL2000" (if you don't have MSDN page bookmarked) and in no time you'll be on this page:
http://msdn.microsoft.com/en-us/library/aa299742(SQL.80).aspx
That simple.
August 13, 2009 at 5:11 pm
It's not the way it's stored, it's the way it's presented to you on SELECT.
If you want another presentation use CONVERT or STR functions.
But use them only for presentation, not...
August 6, 2009 at 2:06 am
You've already posted alternative method.
Why don't use it?
July 12, 2009 at 11:58 pm
Look at the name of the topic YOU opened.
You listed 2 solutions.
One of them does not work.
So?
July 10, 2009 at 4:04 pm
The problem must be in the query you're exporting.
Must be a lot of functions which return NVARCHAR, not CHAR as you think.
After that find that guy who told you to...
July 9, 2009 at 3:25 pm
If you try to execute it it will say you its wrong.
And it's overcomplicated.
What you need the transaction for?
Do you do any data modification here?
My version would look like this:
Alter...
July 9, 2009 at 6:32 am
Replace exec(@SEQ) with
PRINT @SEQ
-- exec (@SEQ) -- uncomment when it's debugged
Helps a lot.
July 7, 2009 at 6:38 pm
Viewing 15 posts - 2,446 through 2,460 (of 6,036 total)