Viewing 15 posts - 3,076 through 3,090 (of 13,874 total)
December 12, 2019 at 6:49 pm
I would guess that it's because ProductName is not unique in the table
Try changing your match criteria from this
(TARGET.ProductName= SOURCE.ProductName)
to this
(TARGET.ProductId= SOURCE.ProductId)
December 12, 2019 at 6:41 pm
You don't need to use VALUES when selecting from one or more tables.
INSERT t(col1, Col2)
SELECT t1.Col1, t2.Col2
FROM t1 join t2 ...
December 12, 2019 at 3:03 pm
'Quater' ... do you mean 'Quarter', by any chance?
Not sure I understand: are you trying to set the value of an SSIS package variable to the 'QuaterID' which the above...
December 12, 2019 at 2:14 pm
Good response. I'd help if I could, but I'm just a lowly developer 🙂
December 12, 2019 at 1:51 pm
Do you want the new tables to be empty?
December 12, 2019 at 1:47 pm
There's no need to have such an unpleasant attitude. People on this forum are generally friendly and helpful. You'll get the best responses if you are too.
December 12, 2019 at 1:34 pm
Instead of providing us with a list of requirements and forcing us to play "guess the question", why not ask us something specific?
December 12, 2019 at 12:37 pm
Can you provide a bit of background as to why you want to do this?
Seems like it will create a lot of clutter in your DB ... others here may...
December 11, 2019 at 10:27 pm
One thing I've learned through experience is not to use the word 'new' in any object names. It may seem like a good idea now, but in three years' time...
December 11, 2019 at 10:24 pm
Phil... thanks for that as actually it is copying the table and keeping the same name with _new added. So for the mis hap..will correct my self in the...
December 11, 2019 at 10:17 pm
Work out the syntax for renaming a single table and then write some T-SQL which queries sys.tables & constructs that T-SQL for all tables, as a SELECT.
You can then cut...
December 11, 2019 at 10:03 pm
If you are using SQL 2016 or onward version then go for Temporal Tables to maintain the history. This is something new inbuilt feature as far as Audit Log/History...
December 10, 2019 at 2:01 pm
Like this?
DROP TABLE IF EXISTS #t1;
CREATE TABLE #t1
(
c1 INT
);
INSERT #t1
(
c1
)
VALUES
(2 )
,(11)
,(4)
,(9);
SELECT t.c1
,c2...
December 10, 2019 at 12:01 pm
Here's another idea:
In the Execute SQL Task, can we check to see if the parameter has a null value? If it does, then we can SELECT the max(date). If...
December 10, 2019 at 2:32 am
Viewing 15 posts - 3,076 through 3,090 (of 13,874 total)