我有一个在sql server 2005下运行的数据库,带有合并复制.我想将一些FK列更改为“not null”,因为它们应始终具有值. sql服务器不会让我这样做,这就是它所说的:
- Unable to modify table. It is invalid to drop the default constraint
on the rowguid column that is used by
merge replication. The schema change
Failed during execution of an internal
replication procedure. For corrective
action,see the other error messages
that accompany this error message. The
transaction ended in the trigger. The
batch has been aborted.
我根本不想改变对rowguid列的约束,只是在另一个充当FK的列上.我想要设置的其他列不为null,因为没有该信息(即客户,客户名称)记录没有任何意义.