Application Role
From: Norbert Meiss (NorbertMeiss_at_discussions.microsoft.com)
Date: 12/26/04
- Previous message: John Bell: "Re: i want to ask some sqlserver question?"
- Next in thread: Erland Sommarskog: "Re: Application Role"
- Reply: Erland Sommarskog: "Re: Application Role"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 26 Dec 2004 06:05:02 -0800
Hi,
I have an Access 2003 project which uses a "dummy" login for the standard
connection without any rights on objects. After establishing the ADO
connection via VBA code I enable the application role which is then used to
do all database access
cn.Execute "EXEC sp_setapprole 'App_Role', '" & strPW & "'"
This works fine unless I assign a rowsource via a code line like this
...Form.RecordSource = "Exec GET_" & Str_SubFormName & " " & strWhere
This works only when I assign the dummy login the right to execute the
stored procedure. It is not enough to assign this right to the Application
role. But this means that the dummy role has access to this table via the
stored procedure which I wanted to avoid. What do I miss, or is this by
design? Any other solutions for this scenario?
TIA,
Norbert Meiss
- Previous message: John Bell: "Re: i want to ask some sqlserver question?"
- Next in thread: Erland Sommarskog: "Re: Application Role"
- Reply: Erland Sommarskog: "Re: Application Role"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|