Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ben Latham
 
Posts: n/a
Default Querying 2 databases with one query string

I can use the following code to create a conection string:

sConnect = "Provider=SQLOLEDB;" & _
"Data Source=Ben;" & _
"Initial Catalog=Northwind;" & _
"Integrated Security=SSPI"

...then execute a SQL statement to return the query results to my workbook.

Is it possible though, to store the results of a query that joins 2 tables
contaned in separate SQL databases?

Thanks

Ben
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Query Help... Jambruins Excel Discussion (Misc queries) 1 July 29th 05 06:56 PM
"Query cannot be edited by the Query Wizard" PancakeBatter Excel Discussion (Misc queries) 0 April 25th 05 05:59 PM
Excel Database Query String Too Long Karl Burrows Excel Discussion (Misc queries) 4 January 27th 05 06:25 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 10:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"