LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.querydao,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing DSN programmatically?

I have a bunch of XL spreadsheets that all query the same DSN, a
FoxPro database. I want to move them to our SQL Server copy of those
databases. They have two DSNs on their machine, "VFP" for the Visual
Foxpro, and "SQL" for the SQL Server.

Is there any way to automatically update the DSN? Currently, it looks
like I'd have to rebuild the entire query from scratch, and I'd rather
avoid that. I've built views in a database that are called the same
thing. However, I might need to tell it which database to use, since
in VFP we'd query "mike", whereas in SQL we'd have to query
"main.dbo.mike".

Thanks in advance.
 
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
Changing Pivot Table Fields Programmatically Todd Huttenstine Excel Programming 1 April 21st 04 02:40 PM
changing an palette index value programmatically in Excel brad Excel Programming 2 April 3rd 04 04:05 AM
Programmatically Add Reference` Jean-Paul Viel Excel Programming 0 September 16th 03 02:23 PM
Programmatically changing cell color Tina Excel Programming 3 September 11th 03 03:36 PM
Can i set a reference programmatically? Tom Ogilvy Excel Programming 1 August 19th 03 04:24 PM


All times are GMT +1. The time now is 01:24 PM.

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

About Us

"It's about Microsoft Excel"