HiI m Trying to find the syntax for creating database & assign user with required permissionI took below code from net & changed for my serverCreate Database GetStartedOn Primary(NAME = 'GetStartedDB_dat',FILENAME = 'E:\MS_DFiles\getstarteddb.ldf',SIZE = 5MB,MaxSize=25MB,FILEGrowth= 10%)LOG ON(NAME='GetStartedDB_log',FILENAME = 'E:\MS_Log\getstarteddb.ldf',SIZE = 1MB,MaxSize=5MB,FILEGrowth= 10%)GOCreate Schema GetStartedschCreate Table EmployeeSummary(EmpID int Identity(1,1) Primary Key,EmployeeFirstName varchar(50),EmployeeLastName varchar(50),EmployeeBirthDate smalldatetime,EmployeeNumberofChildren int,EmployeeBankBalance Money)GOCREATE LOGIN LetMeStartWITH PASSWORD = 'Pass007'USE GetStartedCREATE USER LetmestartU FOR LOGIN LetMeStartWITH DEFAULT_SCHEMA = GetStartedsch
USE GetStarted;GRANT CREATE TABLE,CREATE VIEW,EXECUTE, ALTER,Select,Insert, Update TO LetmestartU;GO
Now the problem is that when i log in as "LetMeStart"I m unable to create new table from Micorsoft management studio (Right click - > New Table)IT says that i need to be dbowner to create new one.But i m abler to run query to create table .So whats i m missing ?I want that user is able to create table , view , procedure ,alter , update,select through MMSI read the msdn ref & search google but unable to find solution.ThanksThanks