我想执行以下查询:
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
中获得的值有什么想法吗?
由于