Click here to Skip to main content
15,437,139 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi I am a student I installed the Micorsoft sql server 2008 R2 when I did my asp.net course now I am doing a introduction to sql course I thought of using the same sql server to create a database and to create a table but I having the following error

TITLE: Microsoft SQL Server Management Studio
------------------------------
Create failed for Database 'course'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Database&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
CREATE DATABASE permission denied in database 'master'. (Microsoft SQL Server, Error: 262)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=262&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
Posted

1 solution

I guess the database, already exists, U can try by giving different name to the database you are trying to create, or remove the database from this location:

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data

assuming that your sql server is installed on c: drive

hope this helps :)

for further queries comment here!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900