473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Permission denied error 2nd Post

New user of SQL
Everything is on the same machine
My error is close to the bottom
After reading it today, I can see there is a problem with 2 dbases
'PUBS' and 'Master'
There are also some comments from the group:
---microsoft.public.sqlserver.odbc-- subject: Permission Denied -- Thanks
for help guys

I was able to find a trial version of the Enterprise Manager.

It was suggested to make the post over in dotnet.framework. I am new to
SQL. I can see the following in the MSDE manager:

sql server(my machine name\??SDK)
after I right click on 'PUBS'
---Users/Roles/Public
---public
---machine_name\aspnet
---guest

guest is the only one with 5 check marks going across from left to right for
the following:
Create Table, Create View, Create SP, Create Default, Create Rule

the following 3 are blank:
Create Function, Backup DB, and Backup Log

public has just 1 check mark on
Create SP

machine_name\aspnet is blank from left to right.

CREATE DBASE right is not displayed.

How can I solve my Permission denied error problem?

Thanks for the help,
Taishi



---Comments---
Hi Tashi!

You can ue Enterprise manager to set the rights. Locate the table, and right
click. Select All Tasks, then Manage Permissions. Locate the user that you
are using in your connection object, and then grant the rights. I agree with
Greg that the web user should not normally have that level of permission.
One false move and your server and data could be toast. If you are really
trying to create a table, or attach a database, you should be doing that
through Enterprise Manager, and not the web interface.

Sloan

"Taishi" <ta********@hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
How can I check the permissions/rights?

How can I grant the correct permissions/rights?

Thanks,
T

"Greg Obleshchuk" <gr***************@ag-s-o-f-t-w-a-r-e.com> wrote in
message news:ud**************@TK2MSFTNGP10.phx.gbl...
Hello,
What are you trying to do here? Can you post the commands

To create databases you need system administrator rights and dbcreator

Permissions (from BOL)
CREATE DATABASE permission defaults to members of the sysadmin and dbcreator
fixed server roles. Members of the sysadmin and securityadmin fixed server
roles can grant CREATE DATABASE permissions to other logins. Members of

the
sysadmin and dbcreator fixed server role can add other logins to the
dbcreator role. The CREATE DATABASE permission must be explicitly granted; it is not granted by the GRANT ALL statement.

CREATE DATABASE permission is usually limited to a few logins to maintain control over disk usage on an instance of SQL Server.

I wouldn't suggest granting the owner of a .NET IIS app either of these
rights
--
I hope this helps
regards
Greg O MCSD
http://www.ag-software.com/ags_scribe_index.aspx. SQL Scribe

Documentation
Builder, the quickest way to document your database
http://www.ag-software.com/ags_SSEPE_index.aspx. AGS SQL Server Extended Property Extended properties manager for SQL 2000
http://www.ag-software.com/IconExtractionProgram.aspx. Free icon

extraction
program
http://www.ag-software.com. Free programming tools


"Taishi" <ta********@hotmail.com> wrote in message
news:eJ*************@TK2MSFTNGP12.phx.gbl...
Windows Pro
VS.Net
.Net Framework
ASP.NET
My 1st time using Web Forms in .Net
1st time using SQL
I am receiving the following error:

System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in database 'master'. Could not attach database 'pubs' to file 'D:\Program Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf'.

I tried the following:

Reboot 4-5 times
Share the folder
Web share the folder

Here is some advanced help from another SQL forum.
sp_helpsrvrolemember 'sysadmin' ----> command is not on my box.
isql /usa/p/server\sdk -i\instpubs.sql ----> did not work. isql is

not a command found on my box.
Any ideas?

Thanks for your help,
T



Nov 18 '05 #1
2 3645
You might want to investigate this open source solution:
"ASP Enterprise Manager is a web-based interface for Microsoft SQL Server
and MSDE written using ASP.Net, VB.Net and C#.Net. This project was
developed to allow many SQL Server and MSDE design and administration tasks
to be performed from any computer with a web browser. "

http://www.aspenterprisemanager.com/

http://sourceforge.net/projects/asp-ent-man/
"Taishi" <ta********@hotmail.com> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
New user of SQL
Everything is on the same machine
My error is close to the bottom
After reading it today, I can see there is a problem with 2 dbases
'PUBS' and 'Master'
There are also some comments from the group:
---microsoft.public.sqlserver.odbc-- subject: Permission Denied -- Thanks
for help guys

I was able to find a trial version of the Enterprise Manager.

It was suggested to make the post over in dotnet.framework. I am new to
SQL. I can see the following in the MSDE manager:

sql server(my machine name\??SDK)
after I right click on 'PUBS'
---Users/Roles/Public
---public
---machine_name\aspnet
---guest

guest is the only one with 5 check marks going across from left to right
for
the following:
Create Table, Create View, Create SP, Create Default, Create Rule

the following 3 are blank:
Create Function, Backup DB, and Backup Log

public has just 1 check mark on
Create SP

machine_name\aspnet is blank from left to right.

CREATE DBASE right is not displayed.

How can I solve my Permission denied error problem?

Thanks for the help,
Taishi



---Comments---
Hi Tashi!

You can ue Enterprise manager to set the rights. Locate the table, and
right
click. Select All Tasks, then Manage Permissions. Locate the user that you
are using in your connection object, and then grant the rights. I agree
with
Greg that the web user should not normally have that level of permission.
One false move and your server and data could be toast. If you are really
trying to create a table, or attach a database, you should be doing that
through Enterprise Manager, and not the web interface.

Sloan

"Taishi" <ta********@hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
How can I check the permissions/rights?

How can I grant the correct permissions/rights?

Thanks,
T

"Greg Obleshchuk" <gr***************@ag-s-o-f-t-w-a-r-e.com> wrote in
message news:ud**************@TK2MSFTNGP10.phx.gbl...
> Hello,
> What are you trying to do here? Can you post the commands
>
> To create databases you need system administrator rights and dbcreator
>
> Permissions (from BOL)
> CREATE DATABASE permission defaults to members of the sysadmin and

dbcreator
> fixed server roles. Members of the sysadmin and securityadmin fixed server > roles can grant CREATE DATABASE permissions to other logins. Members of

the
> sysadmin and dbcreator fixed server role can add other logins to the
> dbcreator role. The CREATE DATABASE permission must be explicitly granted; > it is not granted by the GRANT ALL statement.
>
> CREATE DATABASE permission is usually limited to a few logins to maintain > control over disk usage on an instance of SQL Server.
>
> I wouldn't suggest granting the owner of a .NET IIS app either of these
> rights
>
>
> --
> I hope this helps
> regards
> Greg O MCSD
> http://www.ag-software.com/ags_scribe_index.aspx. SQL Scribe

Documentation
> Builder, the quickest way to document your database
> http://www.ag-software.com/ags_SSEPE_index.aspx. AGS SQL Server Extended > Property Extended properties manager for SQL 2000
> http://www.ag-software.com/IconExtractionProgram.aspx. Free icon

extraction
> program
> http://www.ag-software.com. Free programming tools
>
>
>
>
> "Taishi" <ta********@hotmail.com> wrote in message
> news:eJ*************@TK2MSFTNGP12.phx.gbl...
> > Windows Pro
> > VS.Net
> > .Net Framework
> > ASP.NET
> > My 1st time using Web Forms in .Net
> > 1st time using SQL
> > I am receiving the following error:
> >
> > System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in > > database 'master'. Could not attach database 'pubs' to file 'D:\Program > > Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf'.
> >
> > I tried the following:
> >
> > Reboot 4-5 times
> > Share the folder
> > Web share the folder
> >
> > Here is some advanced help from another SQL forum.
> > sp_helpsrvrolemember 'sysadmin' ----> command is not on my box.
> > isql /usa/p/server\sdk -i\instpubs.sql ----> did not work. isql is

not
a
> > command found on my box.
> >
> >
> > Any ideas?
> >
> > Thanks for your help,
> > T
> >
> >
>
>




Nov 18 '05 #2
Hello! Ken:

I posted that website on my other posting(Permission Denied). I will do
some more research and investigating but you told me that I had to install
it on a ASP.net web server???? I am a uninitiated, so I'm trying to grasp
the concept.

Hi Tashi!

You'll have to install it on a local ASP.net web server, and then use your
browser to go to the site.

Sloan

Taishi
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:u2**************@TK2MSFTNGP11.phx.gbl...
You might want to investigate this open source solution:
"ASP Enterprise Manager is a web-based interface for Microsoft SQL Server
and MSDE written using ASP.Net, VB.Net and C#.Net. This project was
developed to allow many SQL Server and MSDE design and administration tasks to be performed from any computer with a web browser. "

http://www.aspenterprisemanager.com/

http://sourceforge.net/projects/asp-ent-man/
"Taishi" <ta********@hotmail.com> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
New user of SQL
Everything is on the same machine
My error is close to the bottom
After reading it today, I can see there is a problem with 2 dbases
'PUBS' and 'Master'
There are also some comments from the group:
---microsoft.public.sqlserver.odbc-- subject: Permission Denied -- Thanks for help guys

I was able to find a trial version of the Enterprise Manager.

It was suggested to make the post over in dotnet.framework. I am new to
SQL. I can see the following in the MSDE manager:

sql server(my machine name\??SDK)
after I right click on 'PUBS'
---Users/Roles/Public
---public
---machine_name\aspnet
---guest

guest is the only one with 5 check marks going across from left to right
for
the following:
Create Table, Create View, Create SP, Create Default, Create Rule

the following 3 are blank:
Create Function, Backup DB, and Backup Log

public has just 1 check mark on
Create SP

machine_name\aspnet is blank from left to right.

CREATE DBASE right is not displayed.

How can I solve my Permission denied error problem?

Thanks for the help,
Taishi



---Comments---
Hi Tashi!

You can ue Enterprise manager to set the rights. Locate the table, and
right
click. Select All Tasks, then Manage Permissions. Locate the user that you are using in your connection object, and then grant the rights. I agree
with
Greg that the web user should not normally have that level of permission. One false move and your server and data could be toast. If you are really trying to create a table, or attach a database, you should be doing that
through Enterprise Manager, and not the web interface.

Sloan

"Taishi" <ta********@hotmail.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
How can I check the permissions/rights?

How can I grant the correct permissions/rights?

Thanks,
T

"Greg Obleshchuk" <gr***************@ag-s-o-f-t-w-a-r-e.com> wrote in
message news:ud**************@TK2MSFTNGP10.phx.gbl...
> Hello,
> What are you trying to do here? Can you post the commands
>
> To create databases you need system administrator rights and dbcreator >
> Permissions (from BOL)
> CREATE DATABASE permission defaults to members of the sysadmin and
dbcreator
> fixed server roles. Members of the sysadmin and securityadmin fixed

server
> roles can grant CREATE DATABASE permissions to other logins. Members of the
> sysadmin and dbcreator fixed server role can add other logins to the
> dbcreator role. The CREATE DATABASE permission must be explicitly

granted;
> it is not granted by the GRANT ALL statement.
>
> CREATE DATABASE permission is usually limited to a few logins to

maintain
> control over disk usage on an instance of SQL Server.
>
> I wouldn't suggest granting the owner of a .NET IIS app either of these > rights
>
>
> --
> I hope this helps
> regards
> Greg O MCSD
> http://www.ag-software.com/ags_scribe_index.aspx. SQL Scribe
Documentation
> Builder, the quickest way to document your database
> http://www.ag-software.com/ags_SSEPE_index.aspx. AGS SQL Server

Extended
> Property Extended properties manager for SQL 2000
> http://www.ag-software.com/IconExtractionProgram.aspx. Free icon
extraction
> program
> http://www.ag-software.com. Free programming tools
>
>
>
>
> "Taishi" <ta********@hotmail.com> wrote in message
> news:eJ*************@TK2MSFTNGP12.phx.gbl...
> > Windows Pro
> > VS.Net
> > .Net Framework
> > ASP.NET
> > My 1st time using Web Forms in .Net
> > 1st time using SQL
> > I am receiving the following error:
> >
> > System.Data.SqlClient.SqlException: CREATE DATABASE permission
denied in
> > database 'master'. Could not attach database 'pubs' to file

'D:\Program
> > Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf'.
> >
> > I tried the following:
> >
> > Reboot 4-5 times
> > Share the folder
> > Web share the folder
> >
> > Here is some advanced help from another SQL forum.
> > sp_helpsrvrolemember 'sysadmin' ----> command is not on my box.
> > isql /usa/p/server\sdk -i\instpubs.sql ----> did not work. isql is

not
a
> > command found on my box.
> >
> >
> > Any ideas?
> >
> > Thanks for your help,
> > T
> >
> >
>
>


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: -g00t©- | last post by:
--------------( oo )-------------- I don't know if there's a beginner board, just tell me if it's the place; I tried Python this weekend. I'm java coder and I was looking for handling names in...
6
by: Jon Montana | last post by:
CDONTS was working well until I installed Exchange 2000. I thought it might be a relay problem, but I allowed the server IP address to relay. Thanks for anything you can offer. here's the...
1
by: Benny | last post by:
Dear All, My ASP-MS Access application works fin in our local server and in our hosting I get this errors, while adding/editing or deleteing. When deleting a product: error Microsoft VBScript...
1
by: Mark E. Hamilton | last post by:
Sorry, I probably should have re-stated the problem: We're using Python 2.3.5 on AIX 5.2, and get the follow error messages from some of our code. I haven't yet tracked down exactly where it's...
10
by: Florian G. Pflug | last post by:
Hi I installed a postgres-application (which was developed on debian woody) on red hat 9 today, using the postgres 7.3 rpms from redhad. One of my the triggers uses the pg_settings table (more...
4
by: Russell Warren | last post by:
I've been having a hard time tracking down a very intermittent problem where I get a "permission denied" error when trying to rename a file to something that has just been deleted (on win32). ...
4
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
0
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to...
4
by: xzzy | last post by:
I have a v1.1 web app that works on my local computer. However, running it at the host computer, the following breaks: when a viewer selects a different country, the State dropdown should...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.