ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get external data - how to stop table list from being displayed on connect? (https://www.excelbanter.com/excel-programming/300973-get-external-data-how-stop-table-list-being-displayed-connect.html)

P Adhia

Get external data - how to stop table list from being displayed on connect?
 
Hello,

I am trying to use Excel's get external data feature to view a
Mainframe DB2 table using ODBC connection. How can I get MSQuery to
stop tyring to show me all the tables that exists upon connecting to
database? The problem is, Mainframe DB2 has more than 500,000
tables/views defined and connection just dies before it can bring back
the list. The table of interest to me itself is small and I'd like to
code the SQL directly.

Thanks

P Adhia

Jamie Collins

Get external data - how to stop table list from being displayed on connect?
 
wrote ...

How can I get MSQuery to
stop tyring to show me all the tables that exists upon connecting to
database? The problem is, Mainframe DB2 has more than 500,000
tables/views defined and connection just dies before it can bring back
the list. The table of interest to me itself is small and I'd like to
code the SQL directly.


You can use VBA to do this and this avoid opening the MS Query UI. For
details, see Dick Kusleika's site:

http://www.dicks-clicks.com/excel/Ex....htm#CreateVBA

For more control in VBA code, consider using ADO.

Jamie.

--


All times are GMT +1. The time now is 02:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com