Re: Promt user for criteria ?
- From: Hugo Kornelis <hugo@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jan 2006 23:14:24 +0100
On Mon, 23 Jan 2006 06:36:03 -0800, Xavier wrote:
>Hugo
>
>You are correct I mistakenly said faster than a SP but I should has said
>faster that a passthrough query from my front end which is access.
>
>I could not run my report from access unless I add the view to my access
>front ent as a linked table, is there any other way ? for an access report to
>run a sql view and pass a parameter, like a date range to extrack particular
>data example ()now
>minus 48hrs everytime the user runs it.
Hi Xavier,
When using Access, you want to make sure that network traffic is kept at
a minimum. Stored procedures and pass-through queries meet this
requirement without any doubt. I'm less sure about queries on linked
tables.
I have read reports claiming that Access will fetch a complete linked
table over the network to execute the query client-side. I have also
read reports claiming that the former reports are rubbish. My personal
experience with Access is too limited to be able to tell which reports
are true and which aren't. If you want to find out, then run a profiler
trace while running Access and check what Access really sends to the
server.
I would personally use a stored procedure, but that's probably because
I'm more at ease on SQL Server - I know how to squeeze every drop of
performance out of the SP code; I'm not nearrly as proficient in
optimizing Jet SQL.
If your tests indicate that an Access query on an Access linked table
(to a SQL Server table or view) is faster than calling a stored
procedure, then by all means go for it.
--
Hugo Kornelis, SQL Server MVP
.
- References:
- Re: Promt user for criteria ?
- From: Hugo Kornelis
- Re: Promt user for criteria ?
- Prev by Date: Re: Saving Datetime to variable
- Next by Date: RE: Compare row data and input data into a new field
- Previous by thread: Re: Promt user for criteria ?
- Next by thread: Re: Promt user for criteria ?
- Index(es):
Relevant Pages
|
|