SQL Server Partitioning

  • I have two tables:

    CREATE TABLE T1(

    ID,

    NAME,

    CREATE_TIME

    ) ON PRIMARY

    CREATE TABLE T2(

    ID,

    T1_ID

    NAME

    ) ON PRIMARY

    FOREIGN KEY -----> T1.ID = T2.T1_ID

    How do i partition table t2 by T1.CREATE_TIME?

    Regards,

  • Hi,

    AFAIK, this is not possible.

    The partition key - the column used for partitioning must exist as a single column in the same table.

    Vishal Gajjar
    http://SqlAndMe.com

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply