(Msg. 1) Posted: Mon Jul 16, 2007 1:36 pm
Post subject: Data Source Name Not Found Archived from groups: microsoft>public>excel>querydao (more info?)
I have an Excel spreadsheet with a dozen queries to an Oracle database. I
recently switched PCs. Seveal of my queries do not work on the new PC now.
I get:
"[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified."
It seems that several of these queries may use a data source name that I
have not defined on my new PC. How do I find out what data source name the
Excel query is looking for, so that I can add them? Clicking on the "Edit
Query" button on the External Data toolbar simply gives me the above error.
I'd like to avoing recreating the queries if possible.
(Msg. 2) Posted: Mon Jul 30, 2007 5:37 pm
Post subject: Re: Data Source Name Not Found [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
On Mon, 16 Jul 2007 13:36:13 -0500, "andy"<noway.TakeThisOut@noway.xyz> wrote:
>I have an Excel spreadsheet with a dozen queries to an Oracle database. I
>recently switched PCs. Seveal of my queries do not work on the new PC now.
>I get:
>
>"[Microsoft][ODBC Driver Manager] Data source name not found and no default
>driver specified."
>
>It seems that several of these queries may use a data source name that I
>have not defined on my new PC. How do I find out what data source name the
>Excel query is looking for, so that I can add them? Clicking on the "Edit
>Query" button on the External Data toolbar simply gives me the above error.
>
>I'd like to avoing recreating the queries if possible.
Andy:
Open up the VBE (Alt+F11)
Open the Immediate Window (Cntl+G)
Type:
?Sheet1.QueryTables(1).Connection
Change Sheet1 and the QT index as necessary. This will print the connection
string, which should tell you the datasource name it's expecting.
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum