Re: Want to Display a Datasheet Based on Adhoc Query (SQL)
- From: "Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 10 Dec 2005 09:57:37 -0500
Nice approach, having a table storing all the ad-hoc queries. Glad to hear
it worked out!
Rob
"PAH" <PAH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8FD8D3C1-E088-47D8-A1F3-D0202F860E30@xxxxxxxxxxxxxxxx
> Robert:
> Thank you for your recommendation! It worked out well.
>
> Here is the solution I finally settled on. My system is Win Server 2003,
> SQL Server 2000, MS Access 2003, using Active Directory.
>
> 1. Use two SQL tables.
> a. One to store all the ad hoc queries / stored procedure calls
> that a user can call
> b. One that stores the ad hoc query based on user name (user name
> can be determined via a call to the SQL system call: system_user
> 2. The Access form.
> a. Allows user to select from a list the query to run (populated
> from the ad hoc query table.
> b. Stores the selected query into the table based on user name.
> c. Calls a stored procedure using: DoCmd.OpenStoredProcedure
> "RunAdHoc", acViewNormal.
> i. The stored procedures finds out the user name
> ii. Retrieves the text of the desired query into @SPText
> iii. Runs it via the code: exec (@SPText)
> d. A datasheet is displayed.
>
> This method is similar to using a pass-through query in an .mdb.
> Thanks again for all the help! -- PAH
.
- References:
- Re: Want to Display a Datasheet Based on Adhoc Query (SQL)
- From: Philipp Stiefel
- Re: Want to Display a Datasheet Based on Adhoc Query (SQL)
- From: Robert Morley
- Re: Want to Display a Datasheet Based on Adhoc Query (SQL)
- Prev by Date: Re: Official Status of SQLServer 2005 ADP
- Next by Date: Re: Official Status of SQLServer 2005 ADP
- Previous by thread: Re: Want to Display a Datasheet Based on Adhoc Query (SQL)
- Next by thread: Update Berechtigung auf Spalten prüfen
- Index(es):
Relevant Pages
|