我想执行以下查询:
DENY DELETE ON tableTest to Domain\Username
但它打印
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '\'.
我试过
SELECT @Test = 'Domain\Username'
DENY DELETE ON tableTest to @Test
但它也没有用。Domain\Username 是我在 sys.database_principals 中得到的值
任何的想法?
谢谢