2013-05-22 143 views
5
GRANT SELECT ON tableName TO something\user_name 

不幸的是,當我在SQL Server 2008 R2中執行此操作時,出現Incorrect syntax near '\'.錯誤。在SQL Server GRANT中轉義反斜槓

有沒有辦法避免反斜槓,或者我該怎麼辦?

+3

嘗試'[something \ user_name]' –

回答

10
GRANT SELECT ON tableName TO [something\user_name]