Getting SQL error on sp but still runs

D

David C

I have an aspx page with an editible GridView. When I click the Update
button the stored procedure runs (I know because the underlying data was
changed) but throws an exception as follows:

Source: .Net SqlClient Data Provider
An unhandled exception occurred:

Message: Cannot find the object 'rfp_updPeopleAndLink', because it does not
exist or you do not have permission.

I looked at the permissions and [public] has execute permissions.

I am using the DataSource UpdateCommand as follows:

UpdateCommand="EXEC rfp_updPeopleAndLink @Phone, @CellPhone, @Email,
@PersonID, @LinkNotes, @PrimaryPerson, @PropLinkID">



Any ideas on where I might look to resolve this? Thanks.

David
 
D

David C

No, but I just found the problem. The stored proc code had a GRANT command
at the end besides the permissions also GRANTing execute to [public]. I
took out the code from the sp and now it works fine...no error. Boy, is
that strange!

David
David Wier said:
Are you logging into the database with a connectionstring, that has a
particular user assigned to it?
does that user have permissions on the stored proc?

David Wier
http://aspnet101.com
http://iWritePro.com


David C said:
I have an aspx page with an editible GridView. When I click the Update
button the stored procedure runs (I know because the underlying data was
changed) but throws an exception as follows:

Source: .Net SqlClient Data Provider
An unhandled exception occurred:

Message: Cannot find the object 'rfp_updPeopleAndLink', because it does
not exist or you do not have permission.

I looked at the permissions and [public] has execute permissions.

I am using the DataSource UpdateCommand as follows:

UpdateCommand="EXEC rfp_updPeopleAndLink @Phone, @CellPhone, @Email,
@PersonID, @LinkNotes, @PrimaryPerson, @PropLinkID">



Any ideas on where I might look to resolve this? Thanks.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top