Viewing 15 posts - 271 through 285 (of 3,232 total)
WayneS (11/2/2010)
buddy__a (11/2/2010)
November 2, 2010 at 3:31 pm
A view is a good place to add columns and aggregations, but I don't understand why you have a trigger and stored procedure for this. Views are materialized when...
November 2, 2010 at 3:22 pm
Can you give me an example of the raw data that would make up the groupings that you have there? Table DDL would help too.
November 2, 2010 at 3:19 pm
Duh.....I didn't notice that all of the other column values were the same.....GROUP BY would definately be the best option. Thanks Lutz!
November 1, 2010 at 9:58 am
Here's one way......given I don't know anything about your table structure, size, or indexing, this will work. If it does not perform well, post your table DDL and some...
November 1, 2010 at 8:38 am
That's exactly what I'd recommend to do (obviously from the other post).
November 1, 2010 at 8:19 am
preensheen (10/29/2010)
John Rowan (10/25/2010)
October 29, 2010 at 11:11 am
preensheen (10/27/2010)
John Rowan (10/26/2010)
Data Flow source adapters do allow for SP execution. Does attempting this give you an error?
Yes, i am trying to pass parameter and and everything correctly...
October 28, 2010 at 3:54 pm
That would work if the 2 tables were in fact related by idnum=idnum, but the OP did not say the tables were related.....just similar.
October 28, 2010 at 1:37 pm
Thanks for posting the solution. I'm sure this will help somebody else down the road.
October 28, 2010 at 12:46 pm
Look at the STUFF function in BOL.
October 28, 2010 at 12:40 pm
Why can't you just include the double quotes in with the header variable? How are you getting the header variable into the file?
October 28, 2010 at 12:39 pm
CREATE VIEW Transactions
AS
SELECT idnum,
trndate,
amount * -1 as amount
FROMPurchases
UNION ALL
SELECT idnum,
trndate,
amount
FROMPayments
GO
October 28, 2010 at 12:06 pm
DECLARE @TABLE_A TABLE (PCode char(3), MonthPop int)
INSERT INTO @Table_A
SELECT '5F5', 400000 UNION ALL
SELECT '5F7', 777777 UNION ALL
SELECT '5HG', 222224 UNION ALL
SELECT '5HP', 153086
DECLARE @TABLE_B TABLE (PCode char(3), MonthPop int)
INSERT INTO...
October 28, 2010 at 10:36 am
Viewing 15 posts - 271 through 285 (of 3,232 total)