答案 0 :(得分:1)
你想要的是一个分区视图。
您可以通过为视图中的每个表指定约束来创建这些,因此sql server将知道哪些信息而不必获取它:
即
-- On Server1:
CREATE TABLE Customers_33
(CustomerID INTEGER PRIMARY KEY
CHECK (CustomerID BETWEEN 1 AND 32999),
... -- Additional column definitions)
-- On Server2:
CREATE TABLE Customers_66
(CustomerID INTEGER PRIMARY KEY
CHECK (CustomerID BETWEEN 33000 AND 65999),
... -- Additional column definitions)
-- On Server3:
CREATE TABLE Customers_99
(CustomerID INTEGER PRIMARY KEY
CHECK (CustomerID BETWEEN 66000 AND 99999),
... -- Additional column definitions)
此处有完整说明:http://msdn.microsoft.com/en-us/library/aa933141(v=sql.80).aspx