Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Production or NOT production
Message
 
 
To
12/02/2004 16:01:21
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00876843
Message ID:
00876953
Views:
9
>I want to have my VFP application go to a different SQL server (for remote views) based on the data in a configuration file.

I do this in one of my VFE based apps. Like Alex suggests, I have a DSN-less connection. Then pass the statement handle obtained to the USE commend (as the CONNSTRING argument). Whatever connection that is defined in the DBC will be overridden at runtime. You can only pass a statement handle to CONNSTRING in VFP8 however.

Aren't you a VFE developer? If so, I can point you to a thread on the support conference where I posted my code which uses a global connection object based on this technique.

Del
Del
Previous
Reply
Map
View

Click here to load this message in the networking platform