Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 1st, 2006, 7:24 AM   #1
Samuaijack
Programmer
 
Samuaijack's Avatar
 
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3 Samuaijack is on a distinguished road
Permission error

hey guys,
i am now working on a small asp.net website where clients come and enter their comment and it is inserted to a database then at the end of the day the manager or administrator sees all those comment but i am facing a problem,it's not in the syntax,here is the error message:

System.Data.SqlClient.SqlError: SELECT permission denied on object 'StudentControl', database 'Northwind', owner 'dbo'.

i guess it's something in sqlserver but i don't have alot of experience in it.
Samuaijack is offline   Reply With Quote
Old Nov 1st, 2006, 7:38 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
My guess (and it's only a guess) would be that your application hasn't been accorded the requisite access permissions.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 1st, 2006, 8:55 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,473
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Yep. Maybe you need to grant SELECT permissions to dbo for the StudentControl object on the Northwind database.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Nov 1st, 2006, 2:46 PM   #4
Iftikhar
Programmer
 
Iftikhar's Avatar
 
Join Date: Oct 2006
Location: London
Posts: 40
Rep Power: 0 Iftikhar is on a distinguished road
Send a message via MSN to Iftikhar
Hi,

First read this file of configuring SQl and then perform following steps. This error is configuration error.

http://web.lemoyne.edu/courseinforma...SDE_ReadMe.doc

1. CONFIGURING THE PATH VARIABLE for
C:\Program Files\Microsoft SQL Server\80\Tools\Binn

2. CONFIGURING THE ASPNET USER ACCOUNT - at the command prompt do this

osql -E -S (local)\NetSDK -Q "sp_grantlogin 'MACHINENAME\ASPNET'"

3. CONFIGURING INDIVIDUAL DATABASES - at the command prompt do this

osql -E -S (local)\NetSDK -d Northwind -Q "sp_grantdbaccess 'MACHINENAME\ASPNET'"

osql -E -S (local)\NetSDK -d Northwind -Q "sp_addrolemember 'db_owner', 'MACHINENAME\ASPNET'"

Note: Replace the 'MACHINENAME' with the name of your server.

Reference: http://p2p.wrox.com/topic.asp?TOPIC_ID=7584
__________________
Iftikhar Ahmed Khan
For doing an experiment on programmer's mood please visit http://uxisfyp1.brunel.ac.uk/cspgiak
Iftikhar is offline   Reply With Quote
Old Nov 1st, 2006, 6:21 PM   #5
Samuaijack
Programmer
 
Samuaijack's Avatar
 
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3 Samuaijack is on a distinguished road
ya that did it iftikhar,thnx
and thnx IR and DaWei too for trying to help.
Samuaijack is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C# corruption!!! Kilo C++ 32 May 21st, 2006 9:44 PM
Masm rsnd Assembly 4 May 20th, 2006 10:05 PM
C++ OWL What am I doing wrong Vagabond C++ 7 Mar 24th, 2006 6:31 PM
libraries matko C 1 Jan 22nd, 2006 3:12 PM
HELP please!!! hamacacolgante C 7 Nov 21st, 2005 6:36 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC