L
Lyle Fairfield
Recently I have modified an ADP application to access its data through the
permissions of an application role, following the suggestions of
"How to Use Application Roles with Access Projects and SQL Server 2000
Desktop Engine (MSDE 2000)"
http://support.microsoft.com/default.aspx?scid=kb;EN-US;318816.
I have found this article helpful but incomplete and plan to write a few
supplementary notes (in my spare time, which never happens, of course) eg.
using GetString with combo and list boxes which require filtering through
parameters.
Regardless, for some of my forms I have specified a RecordSource of
"EXEC StoredProcedureName" as the article suggests. These seem to work
properly both in Access XP, (development), and Access 2K (use).
But reports based on the same Stored Procedure and with a RecordSource set
to the same string, "Exec StoredProcedureName" fail in AC2K but not in AcXP
with a message that "Exec StoredProcedureName" cannot be found.
For some reports I have substituted the SQL string of StoredProcedureName
but many of these strings exceed the maximum allowable length for Report
RecordSource in AC2K (AcXP is fine).
The solution I plan to test next is to implement the SQL string within a
table returning function and to set the RecordSource of the report to
"SELECT * FROM Owner.FunctionName".
Do you have any experience with this, comments or suggestions? Unless you
are using application roles, IMO it's unlikely anything I have written here
will have much relevance to your work.
permissions of an application role, following the suggestions of
"How to Use Application Roles with Access Projects and SQL Server 2000
Desktop Engine (MSDE 2000)"
http://support.microsoft.com/default.aspx?scid=kb;EN-US;318816.
I have found this article helpful but incomplete and plan to write a few
supplementary notes (in my spare time, which never happens, of course) eg.
using GetString with combo and list boxes which require filtering through
parameters.
Regardless, for some of my forms I have specified a RecordSource of
"EXEC StoredProcedureName" as the article suggests. These seem to work
properly both in Access XP, (development), and Access 2K (use).
But reports based on the same Stored Procedure and with a RecordSource set
to the same string, "Exec StoredProcedureName" fail in AC2K but not in AcXP
with a message that "Exec StoredProcedureName" cannot be found.
For some reports I have substituted the SQL string of StoredProcedureName
but many of these strings exceed the maximum allowable length for Report
RecordSource in AC2K (AcXP is fine).
The solution I plan to test next is to implement the SQL string within a
table returning function and to set the RecordSource of the report to
"SELECT * FROM Owner.FunctionName".
Do you have any experience with this, comments or suggestions? Unless you
are using application roles, IMO it's unlikely anything I have written here
will have much relevance to your work.