Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interland has beaten me with a stick AGAIN.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00380667
Message ID:
00380812
Views:
29
>>>He set my DSN up using a Dbase odbc, not foxpro. How did I find this out, because on of the lesser used pages uses the ATC() command for foxpro.
>>
>>Cut out the middle-man, cost and frustration and use a DSN-less connection to the database. Here is an access example (thought I know you are using VFP).
>>
>>http://www.4guysfromrolla.com/webtech/070399-1.shtml
>
>Do you know of any VFP sample code for DSN-less connections. I noticed that the access sample code uses oledb but that is not available in foxpro yet is it.

I found this in another thread but I have not used it.

lnHandle = SQLStringConnect("Driver=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=r:\ultra\prod\quotes.dbf")

lnResult = SQLExec(lnHandle, "Select * from r:\ultra\prod\quotes.dbf", "crsResults")


HTH
Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Reply
Map
View

Click here to load this message in the networking platform