PC Review


Reply
Thread Tools Rate Thread

Automate Converting Query To Pass-Through

 
 
Brian Kudera
Guest
Posts: n/a
 
      5th Jun 2009
I'm wondering if anyone has some code that they have come across that takes
an MS Access query and converts it to a passthrough query automatically.

Ideally it would replace the underscores in the schema/table names in the
FROM clause and add an alias and replace the table names in the
SELECT/WHERE/GROUP BY/HAVING/ORDER BY clauses with the aliases.

It would also convert IIF statements to CASE statements, delete the # around
the dates, etc.

Thanks
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      7th Jun 2009
Hi,
you can try to find it in internet, but not sure you find something really
working. I am not sure you can automatically make such conversion either,
from my experience only simple queries can be easy converted, other you have
to rewrite to get better result.

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com



"Brian Kudera" <(E-Mail Removed)> wrote in message
news:C3FEFE8E-665E-4A54-8966-(E-Mail Removed)...
> I'm wondering if anyone has some code that they have come across that
> takes
> an MS Access query and converts it to a passthrough query automatically.
>
> Ideally it would replace the underscores in the schema/table names in the
> FROM clause and add an alias and replace the table names in the
> SELECT/WHERE/GROUP BY/HAVING/ORDER BY clauses with the aliases.
>
> It would also convert IIF statements to CASE statements, delete the #
> around
> the dates, etc.
>
> Thanks


 
Reply With Quote
 
Stewart Berman
Guest
Posts: n/a
 
      9th Jun 2009
You might look at the upscale wizard that converted MS Access to SQL server.

Brian Kudera <(E-Mail Removed)> wrote:

>I'm wondering if anyone has some code that they have come across that takes
>an MS Access query and converts it to a passthrough query automatically.
>
>Ideally it would replace the underscores in the schema/table names in the
>FROM clause and add an alias and replace the table names in the
>SELECT/WHERE/GROUP BY/HAVING/ORDER BY clauses with the aliases.
>
>It would also convert IIF statements to CASE statements, delete the # around
>the dates, etc.
>
>Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is It Possible To Pass Parameters to A Pass Through Query mcl Microsoft Access Queries 3 21st Sep 2007 01:15 AM
Pass Parameter to stored procedure in pass thru query SAC Microsoft Access Queries 7 11th Jul 2007 12:49 PM
pass a list to a pass thru query smaasz Microsoft Access Reports 0 21st Jul 2006 05:20 PM
Pass thru Query problem - converting from a case /replace in SQL Holly Microsoft Access Queries 1 12th Jul 2006 04:19 PM
Converting Crosstab Query to a Pass-Through Query Demian Valle Microsoft Access Queries 2 30th Jul 2004 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:56 AM.