Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Database creation problem

Author  Topic 

sushant
Starting Member

2 Posts

Posted - 2007-07-31 : 11:30:15
the following msg appears whn i try to create a new database in Microsoft Sql Server Management Studio Express.
I m on Vista Basic and using a administrator account...plz help.... i have my project whose backend is SQL 2005.

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

TITLE: Microsoft SQL Server Management Studio Express
------------------------------

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

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&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.Express.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=09.00.1399&EvtSrc=MSSQLServer&EvtID=262&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

nr
SQLTeam MVY

12543 Posts

Posted - 2007-07-31 : 11:50:07
>> using a administrator account
It's not sysadmin on the server which probably means it's not a local administrator.

Are you sure you are connecting as that account

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

sushant
Starting Member

2 Posts

Posted - 2007-07-31 : 11:54:20
What will be the solution to this problem....
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2007-07-31 : 12:15:15
You need to add the login you are connecting with to the sysadmin role (well you don't need that much but it's the easiest thing to do).
If your login is a local administrator then it will automatically be in sysadmin (unless you have prevented it).

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-07-31 : 22:37:53
Your sql login should be member of database creator server role at least.
Go to Top of Page
   

- Advertisement -