Linked MS SQL Server Tables

G

Guest

Using Linked MS SQL Server Tables in an mdb Access Database, if a query (not
passthrough) includes joins, where, groupby (summations), and order by
statements, what part of the query is executed on the SQL Server and what
part is executed locally in Access?
 
M

Michel Walsh

Jet is the master of the transaction, in that case. MS SQL Server is limited
to supply/maintain its data, as any other heterogeneous source. Remember
that your query can refer to a table stored natively in Jet, another table
in MS SQL Server and a third table, in the said query, can come from Excel !


You can run the following query (with all tables linked to Pubs, in MS SQL
Server)

SELECT authors.city
FROM authors LEFT JOIN titles ON ( authors..au_id = titles.au_id AND
authors.city = 'Iqaluit' )


and see that the result is like JET wants it (NO ROW in the result) while,
if it was MS SQL Server that was in charge, all the rows from authors will
be in the result. That proves that Jet is in charge of the execution plan.


Vanderghast, Access MVP
 
M

Michel Walsh

There was an extra dot, to be removed:

SELECT authors.city
FROM authors LEFT JOIN titles
ON ( authors.au_id = titles.au_id
AND authors.city = 'Iqaluit' )


Vanderghast, Access MVP
 
G

Guest

Thank you for your help. I tested a query on my system first using jet and
then a SQL Stored Procedure. There was no comparison is the reply time - the
Stored Procedure easily won out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top