Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 597
  • Last Modified:

Security issues of Windows 7 preventing database creation in SQL server

Hi,

I have downloaded and installed SQL server express 2005 with SQL management Studio. They are running on Windows 7 Home edition.

When trying to create or attach a database I fail and get the following Error:

Create failed for Databse "databseName" (Microsoft SQLServer.Express.Smo)
Additonal information.
An exception occured while executing a Transact-SQL statement or batch.
(Micrsoft SqlServer.Express ConnectionInfo)
Create database permission denied in database 'master'. (Microsoft SQL Server, Error 262)
My guess is that this is Winows 7 Security issue, but I don't know how to deal with it.
Can any one help.
Thanks
0
adamtrask
Asked:
adamtrask
  • 2
  • 2
  • 2
  • +1
2 Solutions
 
Mohit VijayCommented:
Have you loged in SQL server using Admin rights? generally this problem occur whenever your SQL user dont have permission for such orations.

Please check if your windows authenticated user has all rights in SQL Server Security/login, if not give permission there.

Its not really Windows 7 security related issue.
0
 
InteqamCommented:
it might be, try to give rights for network services to the folder you want the database to be stored in.

0
 
adamtraskAuthor Commented:
The installation is very new, I am the owner/administrator and the only person logging in.

And I haven't used a network yet, I am logging in from the machine that has Sql server. The machine is not  attached to any network. So far this is a purely solo beginning.

Thanks
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Mohit VijayCommented:
We understand. But your login on SQL server has all rights? is it belongs to sysadmin/owner etc..?
0
 
InteqamCommented:
well, i'll tell you my experience.

I have had the same environment you have, except that i had windows 7 Ultimate, and i wasn't trying to create a database, but Attaching one. every time i attached a database i got it read-only and couldn't change it.

the solution was to give the network services user the proper access privilege to the folder of the database file, since that is the user the SQL service is running under.

0
 
adamtraskAuthor Commented:
Thank you guys, all I had to do was  right-click on Sql server Management Studio, go to properties and select run as administrator.

It was a Windows 7 security problem after all.


Thanks again.

0
 
geoff_austinCommented:
adamtrask -

Just had the same problem on Windows 7 / SQL 2005 Express.  Running SQL Server Management Studio as administrator did the trick.  Thank you for posting.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now