dbTalk Databases Forums  

Export/import SQL queries

comp.databases.ms-access comp.databases.ms-access


Discuss Export/import SQL queries in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vjp2.at@at.BioStrategist.dot.dot.com
 
Posts: n/a

Default Export/import SQL queries - 07-25-2009 , 04:28 PM






I have a selection of SQL queries I'd like to be able to email as a
collection so others can import them without my having to copy the
entire mdb file into their machines. Is there some way to export all
queries into a (preferably text) file?



- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://www.facebook.com/vasjpan2
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Remorse begets zeal] [Windows is for Bimbos]

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Export/import SQL queries - 07-25-2009 , 08:26 PM






vjp2.at (AT) at (DOT) BioStrategist.dot.dot.com wrote:
Quote:
I have a selection of SQL queries I'd like to be able to email as a
collection so others can import them without my having to copy the
entire mdb file into their machines. Is there some way to export all
queries into a (preferably text) file?



- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://www.facebook.com/vasjpan2
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Remorse begets zeal] [Windows is for Bimbos]
Looke at Open, Close, Print in help for creating/writing to a text file.

This will scan all the queries and display the name and the SQL.
Sub Q()
Dim qdf As QueryDef
For Each qdf In CurrentDb.QueryDefs
If Left(qdf.Name, 1) <> "~" Then MsgBox qdf.Name & vbNewLine &
qdf.SQL
Next
MsgBox "Done"
End Sub

Reply With Quote
  #3  
Old   
vjp2.at@at.BioStrategist.dot.dot.com
 
Posts: n/a

Default Re: Export/import SQL queries - 07-28-2009 , 01:17 PM



Many thanks

In <qumdnWne1MBeLfbXnZ2dnUVZ_tSdnZ2d (AT) earthlink (DOT) com> by Salad <oil (AT) vinegar (DOT) com> on Sat, 25 Jul 2009 18:26:26 -0700 we perused:

*+-This will scan all the queries and display the name and the SQL.
*+-Sub Q()
*+- Dim qdf As QueryDef
*+- For Each qdf In CurrentDb.QueryDefs
*+- If Left(qdf.Name, 1) <> "~" Then MsgBox qdf.Name & vbNewLine &
*+-qdf.SQL
*+- Next
*+- MsgBox "Done"
*+-End Sub


- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://www.facebook.com/vasjpan2
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Remorse begets zeal] [Windows is for Bimbos]

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.