Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to SQL without using DSN
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Connecting to SQL without using DSN
Miscellaneous
Thread ID:
00501008
Message ID:
00501008
Views:
50
A while ago someone showed me this method of connect to a dBase database without having to use a DSN but instead to use the driver directly.

nSQL = sqlstringconnect([DBQ=C:\GoldMine;DefaultDir=C:\GoldMine;Driver={Microsoft dBase Driver (*.dbf)};DriverId=533;MaxBufferSize=2048;PageTimeout=5;])

On the SQL side I currently use:

nSQL = sqlstringconnect([DSN=CCC_GoldMine;UID=sa;PWD=;AutoTranslate=No;UseProcForPrepare=0;QuotedId=No;AnsiNPW=No])

and I was wondering if there is a way of specifying the SQL connection string with a driver instead of the DSN. If it is possible, could you take the string above and revise it correctly so that I can take a look at it.

TIA
DJ :o)
Next
Reply
Map
View

Click here to load this message in the networking platform