Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatic dBase Connection
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00256910
Message ID:
00256986
Views:
19
>I need to be able to access some dBase IV files in VFP6 without user interaction. I need to programmatically make a connection. I tried sglstringconnect(), but that always brings up the dialog box. Does anyone know how I can programmatically make this happen.

You can use SQLCONNECT() or SQLSTRINGCONNECT(); in both cases, failing to specify the necessary details (like in the case of SQLSTRINGCONNECT, the connection string) the dialog box pops.

If you've already defined a DSN, SQLCONNECT() will allow you to specify the DSN name along with a userid and password if it's required. There have bene a number of discussions on creating a DSN programmatically in the past couple of months on UT, and you might want to check the FQ for examples.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform