Viewing 15 posts - 3,586 through 3,600 (of 6,036 total)
If you need to count columns in a table you've got absolutely wrong idea about relational databases.
September 16, 2007 at 6:23 pm
September 16, 2007 at 2:14 am
Trigger should contain single statement:
INSERT INTO dbo.IDsToUpdate (ID)
SELECT i.PK_ID
FROM inserted i
WHERE NOT EXISTS (select 1 from dbo.IDsToUpdate U
where U.ID = i.PK_ID)
Then use join to this table in you UPDATE...
September 14, 2007 at 5:41 pm
> How can I use triggers avoiding that ...
Don't use cursors in triggers.
September 14, 2007 at 5:33 pm
It's not the case.
I managed to get right file end in the end, but only when I eliminated dynamic SQL and # table inside of invoked procedure.
Now trying to find...
September 14, 2007 at 4:37 pm
Ken's solution is preferable.
It allows to use index, if there is one.
And I would suggest to normalize you data. It eliminates so many problems...
September 13, 2007 at 2:40 pm
SET NOCOUNT ON is run-time option, and it's set inside of that SP.
Yes, there # tables inside. Moreover, they are inside of dynamic SQL executed by SP at the end.
There...
September 13, 2007 at 2:19 pm
It was more not for your eyes, but for OP.
![]()
You just asked right question.
September 13, 2007 at 6:16 am
Good luck with it.
Just be careful - don't mess with triggers until you sure you know what you are doing.
September 13, 2007 at 6:09 am
> Other than the possible model changes, what's your take on this Sergiy?
1. Simplicity
2. Logical integrity
3. Less processing (and processing moved to precompiled view code - more effective)
4. Automatic...
September 13, 2007 at 6:06 am
Does not look like data problem.
I selected different ranges of data for the report - same result.
But about SET options - have to give it a shot.
There is a possibility...
September 13, 2007 at 5:56 am
On one of computers I have clear MS SQL Server 2000 installation.
No Visual Studio, nothing else, just standard SQL Server development tools - EM and QA.
All dt_ procedures are there.
And...
September 13, 2007 at 3:52 am
Viewing 15 posts - 3,586 through 3,600 (of 6,036 total)