Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Migrating SQL Query Statements from one db to another

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AnotherMcGyver - 09 Nov 2005 15:04 GMT
I have a datawarehouse application that updates "linked tables" into
MS-Access, so users can make SQL queries using MS-Access as a Proxy.

In deploying some Cognos applications, I would like to take a selection
of MS-Access queries and export the SQL statements into a file.

This way, I can go to the "production" environment and deploy my SQL
code there. The datawarehouse already has the option of updating linked
tables.

If I package the .mdb file itself, I need to do a lot of work in
cleaning it up first (remove all linked tables), remove unnecessary
queries, whereas the "production system" has other queries and tables
already in it -- not really an option.

Any help?

-Alex
[MVP] S.Clark - 09 Nov 2005 17:32 GMT
Using VBA, you can extract the SQL property from each of the desired
querydefs.

See the help file for QueryDefs for some sample code.

Signature

Steve Clark, Access MVP
http://www.fmsinc.com/consulting

>I have a datawarehouse application that updates "linked tables" into
> MS-Access, so users can make SQL queries using MS-Access as a Proxy.
[quoted text clipped - 14 lines]
>
> -Alex
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.