Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Replication-Primary key issue

$
0
0

Replicating the below table from publisher to subscriber


CREATE TABLE [dbo].[Product](
[ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[SKUSuffix] [varchar](20) NULL,
[StoreCode] [varchar](2) NULL,
[Inventory] [int] NULL,
[inventoryBuffer] [int] NULL,
[POETA] [datetime] NULL,
 CONSTRAINT [ProductVariantInventory_rep] PRIMARY KEY CLUSTERED 
(
[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

But I am not able to see primary key for ID at subscriber why?


Vanchan


Viewing all articles
Browse latest Browse all 4054

Trending Articles