ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Execute a query against an excel doc and a sql server db (https://www.excelbanter.com/excel-programming/275659-execute-query-against-excel-doc-sql-server-db.html)

Rick[_14_]

Execute a query against an excel doc and a sql server db
 
I've come across a situation where a customer needs a query executed
against an excel spreadsheet that is auto refreshed and my program's
database. I have seen code examples that execute a query against 2
databases but not a database and an excel doc. I've attempted to
manipulate the code for 2 databases unsuccessfully. If anyone has any
ideas or examples on such a scenario, I would greatly appreciate any
help that you can offer. I understand that the use of catalogs and
tables in adox is most likely required but I haven't had any luck with
it thus far.

Rick

Jim Carlock[_2_]

Execute a query against an excel doc and a sql server db
 
Export the data on the Excel sheet to a table and then use your
methods to access two tables.

Excel can export to a variety of different table formats, including
CSV, dbf, tab-delimited, etc.

Let us know if that helps in some way.

--
Jim Carlock
http://www.microcosmotalk.com
Feel free to post back to the newsgroup!


"Rick" wrote in message
om...
I've come across a situation where a customer needs a query executed
against an excel spreadsheet that is auto refreshed and my program's
database. I have seen code examples that execute a query against 2
databases but not a database and an excel doc. I've attempted to
manipulate the code for 2 databases unsuccessfully. If anyone has any
ideas or examples on such a scenario, I would greatly appreciate any
help that you can offer. I understand that the use of catalogs and
tables in adox is most likely required but I haven't had any luck with
it thus far.

Rick





All times are GMT +1. The time now is 05:04 PM.

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