views:

91

answers:

1

I am working on SQL Server and want to create a partition on a table. I want to base it off of a foreign key which is in another table.

table1 (
   fk uniqueidentifier,
   data
)

fk points to table2

table 2 (
    partition element here
)

I want to partition table1 base on table2's data, ie if table2 contains categories

+2  A: 

The foreign key relationship doesn't really matter, horizontal partitioning is based on the values in the table itself. The foreign key just makes sure they already exist in another table.

Links:

OMG Ponies
wasnt too clear, I want to partition base on another table which is linked by da foreign key
Timmy