Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating online DSN entry for a VFP database
Message
From
04/10/2000 10:16:52
 
 
To
04/10/2000 06:52:01
Rakesh Pahwa
Symco Software P. Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00424600
Message ID:
00424697
Views:
15
Hi Rakesh

Try this

STORE SQLSTRINGCONNECT("DSN=Visual FoxPro Database; UID=;PWD=;
SourceDB=C:\Testdata.dbc;SourceType=DBC;
Exclusive=No;BackgroundFetch=Yes;
Collate=Machine;Null=Yes;Deleted=Yes;");
TO gnConnHandle

IF gnConnHandle < 0
= MESSAGEBOX('Cannot make connection', 16, 'SQL Connect Error')
ELSE
= MESSAGEBOX('Connection made', 48, 'SQL Connect Message')

* your codes
* ...

= SQLDISCONNECT(gnConnHandle)
ENDIF

Replace the database C:\Testdata.dbc with yours.


HTH

- Ram
- Ram.
Previous
Reply
Map
View

Click here to load this message in the networking platform