views:

622

answers:

2

What is the T-SQL syntax for granting a specific user only insert permission after a create table command?

Here is my CREATE TABLE script:

CREATE TABLE [dbo].[MyTable] (
    [MyColumn1] [uniqueidentifier] NOT NULL,
    [MyColumn2] [char] (1) NULL
) ON [PRIMARY]
+3  A: 
GRANT INSERT ON [dbo].[MyTable] TO BillyBob

Or something vaguely similar...

Adrien
A: 

Something like this:

USE AdventureWorks;
GRANT INSERT ON OBJECT::Person.Address TO RosaQdM;
GO

See here for more information.

eKek0