I would like to be able to swap one table partition for another, just by replacing partitionN.ndf before starting up the server.
The general aim is to be able to split out some sets of table rows into different files so that when the app is installed, it only goes with one set. There are some rows that are always needed, so
Scenario A
ID Game Strategy 1 Squash Stick to the T 2 Racketball Drop it at the back 3 Tennis Serve to the backhand 1000 Croquet The key is to be really mean 1001 Billiards Glare a lot
Scenario B
ID Game Strategy 1 Squash Stick to the T 2 Racketball Drop it at the back 3 Tennis Serve to the backhand 1000 Baseball Favour third 1002 Pool Snooker them, be irritating
Here I would partition out the IDs from 1000, and keep the low numbers in the common database. There will be lots of IDs needing to maintain referential integrity with tables in the common database in the scenario-specific partitions.
Would that work? Or would I need to issue some partitioning command to the server to replace it while the server is running? I suppose part of the question is: does the server just start up and read the files, or does it maintain caches and other things that would be sensitive to the replacement?