C. 使用 futureonly_flag
此示例将 rule_ssn 规则绑定到用户定义数据类型 ssn。因为已指定 futureonly,所以不影响类型 ssn 的现有列。
USE master
EXEC sp_bindrule 'rule_ssn', 'ssn', 'futureonly'
D. 使用分隔标识符
此示例显示了在 object_name 中分隔标识符的使用。
USE master
CREATE TABLE [t.2] (c1 int)
-- Notice the period as part of the table name.
EXEC sp_binderule rule1, '[t.2].c1'
-- The object contains two periods;
-- the first is part of the table name
-- and the second distinguishes the table name from the column name.