Does the VFP ODBC driver support subdirectories?
I received a question from a customer:
I don't know how to search for this but does ODBC, specfically Visual FoxPro support opening tables in a subdirectory?
ODBC is very old.. OLEDb is much more recent.
In any case, the answer is yes, the ODBC driver supports opening files in subdirectories.
If you want to access data on other paths, one way is to make another connection.
cPath="d:\fox90\test"
h=SQLSTRINGCONNECT("Driver=Microsoft Visual Foxpro Driver;SourceType=dbf;SourceDB="+cPath)
?h
IF h>0
?SQLEXEC(h,"Select * from customer") && retrieve customer table
MD (cPath+"\Subdir") && Make a subdir
SELECT DISTINCT city FROM customer INTO TABLE (cPath+"Subdir\cities")
USE IN cities && close the cities table
?SQLEXEC(h,"Select * from "+cPath+"\Subdir\cities")
LIST next 10
ENDIF
SQLDISCONNECT(0) && Disconnect all
Comments
Anonymous
September 16, 2006
The comment has been removedAnonymous
September 18, 2006
The comment has been removedAnonymous
February 01, 2008
<a href= http://index1.mughalbank.com >easy to make peanut butter cookies</a>Anonymous
February 01, 2008
<a href= http://index1.mughalbank.com >easy to make peanut butter cookies</a>Anonymous
October 07, 2008
<a href= http://index1.assqer.com >orange barrel media</a> <a href= http://index2.assqer.com >driving directions to south shore animal hospital in ma</a> <a href= http://index3.assqer.com >wonder woman posters</a> <a href= http://index4.assqer.com >aws engineering rules</a> <a href= http://index5.assqer.com >why does my dvd now say wrong disc or no disc in dvd player</a>Anonymous
June 16, 2009
PingBack from http://fixmycrediteasily.info/story.php?id=15035