Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Create failed for Database 'ritu'. (Microsoft.SqlServer.Express.Smo)

ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

CREATE DATABASE permission denied in database 'master'. (Microsoft SQL Server, Error: 262)


This msg are open when i create a new database so what i do??
Posted
Comments
[no name] 9-Jul-12 10:45am    
The error is clear... you do not have permission to create a database in that instance of SQL Server.
Ritu khatri 9-Jul-12 12:43pm    
So what i do?

You are running the query selecting 'master'(default SQL database) DB (check at the top in option to select database.)

Close all the query windows. Right click on 'Databases' in left explorer, select create database and go ahead.
 
Share this answer
 
Comments
Ritu khatri 9-Jul-12 12:39pm    
I don't understand what to do??
plz explain me what option i select..
SalCon 9-Jul-12 13:29pm    
Open Object Explorer , Right click on the "Databases" node and select "New Database"
Ritu khatri 9-Jul-12 23:34pm    
TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Create failed for Database 'hbm'. (Microsoft.SqlServer.Express.Smo)

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

CREATE DATABASE permission denied in database 'master'. (Microsoft SQL Server, Error: 262)

When i create new database then this error is occured
Sandeep Mewara 10-Jul-12 1:06am    
Your query is running under master database. Remove that (Check at the top menu somewhere you will find a dropdown with 'master' in it!)
Ritu khatri 10-Jul-12 8:19am    
ya ther is a drpdown list there are four option..
master
model
tempdb
msdb
when i selct any option and create new database then same msg is displayed
TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Create failed for Database 'gfl'. (Microsoft.SqlServer.Express.Smo)

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

CREATE DATABASE permission denied in database 'master'. (Microsoft SQL Server, Error: 262)

Check the comments section on this page[^]
 
Share this answer
 
Comments
Ritu khatri 11-Jul-12 5:40am    
Thank you very much SalCon...this link help me a lot..

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