执行AdventureWorks\Scripts 目录下的installCS.sql 时候,运行到
EXEC('GRANT EXECUTE ON assembly :: [CurrencyType] TO [' + @ASPUserName + ']');
出现如下错误:
Incorrect syntax near 'EXECUTE...'.
搜索GOOGLE,找到了以下博文:
http://dbaspot.com/forums/ms-sqlserver/269047-permission-required-execute-embedded-assembly.html
说明SQL2005 SP2以后就不再允许如此赋权限给程序集。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28861/viewspace-668595/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28861/viewspace-668595/