Viewing 15 posts - 76 through 90 (of 183 total)
By bringing up the subject of religion himself, the author has demonstrated the effect it can have, and the controversy it can spark, by just saying not to mention it.
Irony at its...
October 20, 2005 at 5:23 am
If I've understood you correctly, would this be the answer?
INSERT INTO ExportStock (Item_Code, StockFree, StockBlocked)
SELECT Item_Code,
SUM(Units * Sub_Units * CASE WHEN Status = 1 THEN 1 ELSE 0 END),
SUM(Units *...
October 19, 2005 at 3:41 am
I just did something similar the other day with Progress arrays, which are returned to SQL Server as a single semicolon-delimited column, and I needed to split out one such...
October 14, 2005 at 8:50 am
Steve... could something along these lines (per the link below) be a possible short term solution? This one (the "Sky Magic Eye" at the top of the page) is...
October 13, 2005 at 5:03 am
Is the procedure you're view accessing another data source at all? I believe if you have a procedure with, say, a passthrough query in it then it will verify...
October 6, 2005 at 9:37 am
Yes, you'll get that error - and definitely a "no no". You're trying to bring back each individual value for that column, and then sum it... which is going...
September 23, 2005 at 9:43 am
At first glance it appears you're grouping by OO.OOForcedAmount and trying to sum it.
This would return one row for each different value of OO.OOForcedAmount, and the sum of rows that...
September 23, 2005 at 8:47 am
Check the deleted table. If there are records in there (COUNT(*) > 0) and in inserted then it was an update.
If there are only records in inserted, and none...
September 15, 2005 at 9:37 am
Sorry... nothing that I can see to avoid the complication, with the calculations being derived (you can't refer back to other calculations in a SELECT statement).
The only solution I can...
September 14, 2005 at 7:22 am
Because the straight insert from the inserted table would be a set operation (i.e. would run once with multiple rows in one operation).
When you set the variables, they just store...
September 14, 2005 at 6:47 am
It looks to me like you just need to get rid of the variables and put the calculations directly behind the last insert. It looks like it'll probably be...
September 14, 2005 at 6:36 am
Can you post the actual trigger as that will help the solution?
If many rows are updated/inserted, the trigger will be called once with all the affected rows in the inserted...
September 14, 2005 at 6:19 am
Check out the inserted and deleted tables in BOL... I think that should give you the answer you're looking for. (Look up "inserted tables" in the index.)
September 13, 2005 at 5:18 am
Viewing 15 posts - 76 through 90 (of 183 total)