Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ODBC Connection

1) I know the prefered way to set up external connections to databases is
ADO.
2) I used the wizard <import external data<New Database Query
Next I create a <New Data Source using the oracle ODBC Driver (which is
irrelevant for the question)
Q1: Where is this data source saved ?
3) Next I come in MS Query and I can type the sql and return the data to
excell.
4) I come in a dialog box which asks me where to put the data. In this box
I also got the options buttom which allows me to set some properties for the
query and to save the definition of the connection in the sheet (Save Query
Definition).
So far so good.
Q2: Can I distribute this sheet to different users whithout having the need
to create an odbc connection on their computers ? (they must be able to
refresh the data)
Q3: How do I change the connection string (not programmaticly) if the name
of the database changes ? If I go to the <Data Range Properties, there is
no option to change the connection string and if I use <Edit query I connect
directly to the database and have no options to change the connection string.
However, since the connection is saved in the sheet, it has to be somewhere
(to my feeling). And since I managed to get it in by wizards, there must be
an option to change it whithout writing code (or did our friends of MS forgot
this :-) ).
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
ODBC connection question matelot Excel Programming 1 September 23rd 06 08:46 PM
change and ODBC Connection [email protected] Excel Programming 1 August 14th 06 03:22 PM
Broken ODBC Connection dsb Links and Linking in Excel 1 June 12th 06 11:47 PM
ODBC Connection Adrian T[_4_] Excel Programming 4 January 25th 05 08:55 PM
ODBC connection by udl Dorothy[_4_] Excel Programming 1 January 8th 04 05:32 PM


All times are GMT +1. The time now is 11:01 AM.

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"