Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Not an ad hoc q...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 11118 of 11517
Post > Topic >>

Not an ad hoc query?

by nambia05 <nambia05@[EMAIL PROTECTED] > Jun 8, 2008 at 10:02 AM

I have an odbc application that is designed to use an application role. 
  The role has been set up already outside the application and it exists 
in the database.  The application is getting the following error:

Application roles can only be activated at the ad hoc level.


This is the first sql statement issued to the database after connection. 
  It is a direct exec sp_setapprole statement and not issued from within 
a stored proc.  I am not sure what is going on.

Any help will be much appreciated.


N.
 




 6 Posts in Topic:
Not an ad hoc query?
nambia05 <nambia05@[EM  2008-06-08 10:02:29 
Re: Not an ad hoc query?
"Dan Guzman" &l  2008-06-08 12:12:58 
Re: Not an ad hoc query?
nambia05 <nambia05@[EM  2008-06-08 18:37:59 
Re: Not an ad hoc query?
"Dan Guzman" &l  2008-06-08 21:16:54 
Re: Not an ad hoc query?
nambia05 <nambia05@[EM  2008-06-09 15:09:13 
Re: Not an ad hoc query?
Erland Sommarskog <esq  2008-06-09 19:23:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 0:50:46 CST 2008.