Viewing 15 posts - 631 through 645 (of 1,217 total)
Oh... then the only thing you can do is to find out why it is there, what it should do and so on... otherwise you're stuck. You can not rewrite a...
September 21, 2006 at 3:06 am
Something like this should be closer to the correct result, but I still have no idea what the trigger should do, as it is not apparent for your code -...
September 21, 2006 at 2:38 am
OK, to start with, how do you expect this will work if multiple rows are updated? You are trying to assign multiple values to one variable.
declare
@incidentID varchar(50)
set @incidentID =...
September 21, 2006 at 2:13 am
What's DOD? The only thing that comes into my mind is Dead On Delivery... which somehow seems to be appropriate as I read what you are asked to do. We'll...
September 21, 2006 at 1:23 am
Yes please, post the trigger code and table structure. It will be a lot easier to look for solution and explain problems if we all know what it is about.
What...
September 21, 2006 at 1:12 am
Well, if existing rows are your problem, what about something like
INSERT INTO audit_table
SELECT * FROM inserted
WHERE NOT EXISTS (select * from audit_table where primary_key = inserted.primary_key)
You may be better...
September 21, 2006 at 12:56 am
That's right, John didn't say anything about special holidays and long weekends - but Calendar table is a universal solution that can be used on many places, not just in this...
September 18, 2006 at 1:09 am
Interesting coincidence... this weekend I decided to look at a stored procedure I wrote some 2 years ago. Original version of this procedure I inherited was unusable, because it ran...
September 17, 2006 at 12:10 pm
OK, try this as first step:
SELECT a.MatNum,
a.VerNumMat,
a.MatDesc,
a.SpecSta,
a.OldMatID,
...
September 15, 2006 at 10:50 am
I will try to reproduce what I understood so far, please correct me if I'm wrong.
1) You have a table dbo.tb_MatSpec, which has 200k rows. Column MatNum identifies an "object"; there can...
September 15, 2006 at 9:33 am
I suggest to read some articles on http://www.sommarskog.se, dealing with Dynamic SQL and usage of parameters in stored procedures, before you decide which way to go.
September 15, 2006 at 8:36 am
Hi,
unfortunately you didn't supply DDL and the cursor is uncommented, so it is quite hard to understand what you are trying to do. Could you please somehow describe what is...
September 15, 2006 at 8:30 am
If you need to work with a table that already holds such values, you are in problems. You can try to calculate something, but you have no guarantee that it will work...
September 15, 2006 at 7:44 am
Hello,
functions don't work well when used in a select across a large number of rows. Maybe you could post your entire query that's using this function, plus DDL of respective...
September 15, 2006 at 1:22 am
Hi
CREATE procedure_name @start_dte datetime = NULL, @end_dte datetime = NULL, @all varchar(1) bit = 0
1. IF @end_dte IS NULL SET @end_dte = GETDATE()
2. IF @start_dte IS NULL SET @start_dte = GETDATE()...
September 13, 2006 at 1:17 am
Viewing 15 posts - 631 through 645 (of 1,217 total)