WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Data Source Name Not Found

 
   Home -> Office -> Query DAO RSS
Next:  Macro to copy  
Author Message
andy

External


Since: Jul 16, 2007
Posts: 1



(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.
Back to top
Login to vote
Dick Kusleika

External


Since: Mar 08, 2007
Posts: 20



(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
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Query DAO 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
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET