Forum Replies Created

Viewing 6 posts - 1 through 7 (of 7 total)

  • RE: Table size does not add up

    By maintenance do you mean drop and recreate the table as we did?

    Or is there another way?

  • RE: Table size does not add up

    Thanks for the reply, how can this space be recovered?

  • RE: Foreign Key Problems

    Looking into this further, it appears to be an issue with the ORDER of the columns which constitute the primary key.

    Thus the following:

    ALTER TABLE Y

    ADD CONSTRAINT [FK1]

    FOREIGN KEY(LineCreatedAt,LineId)

    REFERENCES X(CreatedAt,...

  • RE: Foreign Key Problems

    Interesting, thanks for saving me the trouble of doing that - although could it be the fact that the partitions are on different filegroups in my case?

    The code i'm using...

  • RE: Foreign Key Problems

    returns:

    PK_Line_Partitionedclustered, unique, primary key located on PS_LineCreatedAt CreatedAt, LineId

    I am beginning to think it is because these columns are on a partition scheme (PS_LineCreatedAt)

    whereas the same columns on the target...

  • RE: Foreign Key Problems

    Hi,

    They are definitely the only columns constituting the primary key.

    I've checked this several times - only these 2 columns have the yellow key icon and "PK" next to them.

Viewing 6 posts - 1 through 7 (of 7 total)