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

I'm currently in the process of a server swap and need to refresh
hundreds of Excel documents to point to the new server.

I can change the ODBC data source quite easy (just by changing the SQL
Server, leaving the name the same). And I understand that Excel stores
this off when the query is created, that I need to refresh this
connection to repoint at the new server.

The only method I can see at the moment it to "Edit Query" on each one
and cut&paste the SQL into a new Query in MSQuery.

Is there any method to auto refresh the DataSource in the Excel? I've
had a search and have been looking at
"?Sheet1.QueryTables(1).Connection", but because the DSN name is the
same I'm not sure what I need to do to refresh 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
Refreshing ODBC data on Protected Sheets AndrewC Excel Discussion (Misc queries) 0 November 10th 09 05:33 AM
Changing ODBC server (MySQL) Groj Excel Worksheet Functions 0 November 23rd 07 05:09 AM
SQL Server ODBC Error Art Saffran Excel Discussion (Misc queries) 0 March 24th 05 02:37 PM
ODBC connection for insert into SQL Server nevada Excel Programming 1 February 23rd 04 04:14 PM
Refreshing data from ODBC automatically? John E.P. Hynes Excel Programming 1 November 21st 03 04:23 PM


All times are GMT +1. The time now is 06:35 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"