The example code is one of the looniest pieces of code you'll find in SQL Server.
CREATE SCHEMA Sprockets AUTHORIZATION Annik
CREATE TABLE NineProngs (source int, cost int, partnumber int)
GRANT SELECT TO Mandar
DENY SELECT TO Prasanna;
This does not do what you think it does. It does not do what Books Online thinks it does, either.
It actually:
• Creates a schema called Sprockets, owned by Annik.
• Creates a table called Sprockets.NineProngs, owned by Annik.
• Grants select permission on the database (not on the table) to Mandar.
• Denies select permission on the database (not on the table ) to Prasanna.
Additionally, it is dangerous because an engineer highlighting and executing one line of code at a time may miss the fact that all four lines are one statement.
For the love of all that is holy, please get rid of this usage from the product.