Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Problems with application role.


Message #1 by "Alvin" <anita@s...> on Thu, 26 Oct 2000 15:16:30 +0100
I want to change de user role by executing a stored procedure containing

the folowing command: Exec sp_setapprole 'testrole', 'testrole'

The stored procedure is called from a ASP page. SQL-server gives the

folowing error message: "Application roles can only be activated at the ad

hoc level."

I get the same error message when I execute the stored procedure within

the SQL Query Analyser. But when I execute the command not within the

stored procedure (Exec sp_setapprole 'testrole', 'testrole') everything

goes well. But then I get the same error if this is done in a ASP page.



Somebody knows what the problem maybe, and how to do this?



Thanks in advance.  

  


  Return to Index