I am new to SQL Server and I wanted to create my first table there.
create table Employee
(
ID smallint not null
)
I use SQL Server 2008 R2 and Windows Authentication.
when I execute , it says :
CREATE TABLE permission denied in database 'master'.
Thanks!
Seems you’re trying to create the table in
masterdatabase where you may not have permission to create table. However, to create your target database please follow below steps:a. At your SQLQuery editor choose your target database (
Available Databasedrop down list) and execute your sql query.Or
b. Try with below statement: