Viewing 8 posts - 1 through 8 (of 8 total)
Hi Tim,
I was able to create the SSISDB now. I forgot to click the Enable CLR Integration check box on top of the screen. Everything is good.
Thanks for your reply.
Brian.
January 6, 2020 at 11:41 pm
What other alternative that you recommend? How can we change this query from MERGE to IF cardnumber EXISTS update ELSE insert method?
November 8, 2015 at 12:34 pm
The target table GiftCard should have a unique CardNumber because it keeps track of the ending balance. The source table GiftCard_Transaction will have gift card redemption transaction from the...
November 8, 2015 at 10:22 am
I cannot use distinct because we want to capture all giftcard transactions...
November 8, 2015 at 10:03 am
The target GiftCard table has the cardnumber as the primary key which does not allow duplicate. The source table GiftCard_Transaction will have duplicate data because it is transactional table...
November 8, 2015 at 10:02 am
I am getting below error:
Msg 2627, Level 14, State 1, Line 7
Violation of PRIMARY KEY constraint 'PK_GiftCard'. Cannot insert duplicate key in object 'dbo.GiftCard'. The duplicate key value is (6033590000063027768).
The...
November 8, 2015 at 9:31 am
Here is the GiftCard Table:
CREATE TABLE [dbo].[GiftCard](
[CardNumber] [varchar](50) NOT NULL,
[Year] [int] NULL,
[Month] [int] NULL,
[Period] [int] NULL,
[TransAmount] [decimal](10, 2) NULL,
[BalanceAmount] [decimal](10, 0) NULL,
CONSTRAINT [PK_GiftCard] PRIMARY KEY CLUSTERED
(
[CardNumber] ASC
)WITH (PAD_INDEX...
November 8, 2015 at 9:16 am
Yes, below is a sample of the transaction table.
Card Number Transaction...
November 3, 2015 at 8:22 am
Viewing 8 posts - 1 through 8 (of 8 total)