Shapper
2012-12-10 01:08:22 UTC
Hello,
I have 3 tables: Packs, Posts and PostPacks so I have a Many to Many relation:
create table dbo.Packs
(
Id int identity not null
constraint Packs_Id_PK primary key clustered (Id)
);
create table dbo.Posts
(
Id int identity not null
constraint Posts_Id_PK primary key clustered (Id)
);
create table dbo.PostsPacks
(
PostId int not null,
PackId int not null,
constraint PostsPacks_PostId_PackId_PK primary key clustered (PostId, PackId)
);
How can I make the Packs ID PK a Guid but keeping the Posts ID PK as an Int. Is this possible?
Thank You,
Miguel
I have 3 tables: Packs, Posts and PostPacks so I have a Many to Many relation:
create table dbo.Packs
(
Id int identity not null
constraint Packs_Id_PK primary key clustered (Id)
);
create table dbo.Posts
(
Id int identity not null
constraint Posts_Id_PK primary key clustered (Id)
);
create table dbo.PostsPacks
(
PostId int not null,
PackId int not null,
constraint PostsPacks_PostId_PackId_PK primary key clustered (PostId, PackId)
);
How can I make the Packs ID PK a Guid but keeping the Posts ID PK as an Int. Is this possible?
Thank You,
Miguel