CREATE TABLE permission denied in database 'tempdb'

Raju  picture Raju · Jul 3, 2011 · Viewed 77.9k times · Source

First time I installed SQL Server Management Studio Express and Visual Studio 2005 on my system. Now I am trying to create table by using below script. But if once I execute I am facing error like

CREATE TABLE permission denied in database 'tempdb'.

Why it it? Can anyone help me how to resolve this ?

USE [tempdb]
GO

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Employee]
([FirstName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
 [LastName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]

Thanks Raju

Answer

Phillip Senn picture Phillip Senn · Jun 28, 2012

I went into the database, security, users, right-click on the user, properties. Membership, checked db_owner.