Connecting Tech Pros Worldwide Help | Site Map

Queries and ODBC

  #1  
Old November 12th, 2005, 05:23 PM
R
Guest
 
Posts: n/a
Hi

When an Access query is run against an ODBC table, is it possible in
any way to tell what is passed to the server? I have a remote Sybase
database linked into Access and the bandwidth is terrible, so I need
the processing to be done purely on the server. Some simple queries
run quickly, so the processing is being done on the server. Some
complex queries with IIf statements etc. are definately not being
converted to Sybase compatible SQL and I think therefore that Access
is requesting the entire tables to be sent down the network and Access
then locally performs the query.

So I would like to be able to tell which queries will be accepted by
the server and which won't

thanks
R.
  #2  
Old November 12th, 2005, 05:25 PM
DFS
Guest
 
Posts: n/a

re: Queries and ODBC



"R" <rasimmonds@hotmail.com> wrote in message
news:6e0be8aa.0312050308.5b8d7e03@posting.google.c om...[color=blue]
> Hi
>
> When an Access query is run against an ODBC table, is it possible in
> any way to tell what is passed to the server? I have a remote Sybase
> database linked into Access and the bandwidth is terrible, so I need
> the processing to be done purely on the server. Some simple queries
> run quickly, so the processing is being done on the server. Some
> complex queries with IIf statements etc. are definately not being
> converted to Sybase compatible SQL and I think therefore that Access
> is requesting the entire tables to be sent down the network and Access
> then locally performs the query.
>
> So I would like to be able to tell which queries will be accepted by
> the server and which won't[/color]

If you need server-side processing, make the queries pass-thru. They'll
have to be rewritten with Sybase compatible SQL


[color=blue]
> thanks
> R.[/color]


  #3  
Old November 12th, 2005, 05:25 PM
MGFoster
Guest
 
Posts: n/a

re: Queries and ODBC


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Generally, if you want the query to be performed exclusively on the
Sybase server you CANNOT use Access functions or user-defined VBA
functions in a query. If you're JOINing Access tables to Sybase table
you should not use Access functions/user-defined VBA functions on any
Sysbase column.

You might wish to try creating separate queries: pass-thru queries to
get the Sybase data & Access queries that read the pass-thru queries
and to further refine the data.

- --
MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP9Dms4echKqOuFEgEQKsmwCfWjXYxOVx8qNZzpZIPQHleG 8Pp5UAoNuL
dSjXqtSey9NzpAbub1FgCAAE
=ifcJ
-----END PGP SIGNATURE-----

R wrote:
[color=blue]
> Hi
>
> When an Access query is run against an ODBC table, is it possible in
> any way to tell what is passed to the server? I have a remote Sybase
> database linked into Access and the bandwidth is terrible, so I need
> the processing to be done purely on the server. Some simple queries
> run quickly, so the processing is being done on the server. Some
> complex queries with IIf statements etc. are definately not being
> converted to Sybase compatible SQL and I think therefore that Access
> is requesting the entire tables to be sent down the network and Access
> then locally performs the query.
>
> So I would like to be able to tell which queries will be accepted by
> the server and which won't
>
> thanks
> R.[/color]


  #4  
Old November 12th, 2005, 05:25 PM
Roger
Guest
 
Posts: n/a

re: Queries and ODBC


there's a registry entry key under DEBUG, called JETSHOWPLAN which
when turned on will create a text file with the jet query optimizer
plan

this will show you what part of a query is [remotely] handled and
what part is handled by JET

the trick is to understand how to build an equivalent sybase query (or
stored procedure) and use a jet passthrough query to execute it on the
server

rasimmonds@hotmail.com (R) wrote in message news:<6e0be8aa.0312050308.5b8d7e03@posting.google. com>...[color=blue]
> Hi
>
> When an Access query is run against an ODBC table, is it possible in
> any way to tell what is passed to the server? I have a remote Sybase
> database linked into Access and the bandwidth is terrible, so I need
> the processing to be done purely on the server. Some simple queries
> run quickly, so the processing is being done on the server. Some
> complex queries with IIf statements etc. are definately not being
> converted to Sybase compatible SQL and I think therefore that Access
> is requesting the entire tables to be sent down the network and Access
> then locally performs the query.
>
> So I would like to be able to tell which queries will be accepted by
> the server and which won't
>
> thanks
> R.[/color]
  #5  
Old November 12th, 2005, 05:28 PM
R
Guest
 
Posts: n/a

re: Queries and ODBC


thanks Roger- exactly what I was looking for!
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass-through queries fail even after SQL Server reconnected marshmallowww@yahoo.com answers 5 June 27th, 2008 08:24 PM
Understanding ODBC connections...! Phil Latio answers 4 November 13th, 2005 02:30 PM
#Deleted displaying for ODBC linked tables Joe answers 7 November 13th, 2005 06:14 AM
MySQL ODBC 3.51 driver Very Slow! DJJ answers 11 July 23rd, 2005 08:07 AM
Bad performance in queries with Jet4.0 and linked ODBC-tables to SQL-Server 2000 Andreas Lauffer answers 6 July 20th, 2005 02:32 AM