Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC Temp File Location
Message
From
30/10/2000 14:25:54
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
 
To
26/10/2000 17:55:39
Jonathan Cochran
Alion Science and Technology
Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00434904
Message ID:
00436017
Views:
30
Just to let anyone who may be interested know, I have solved the problem I was having. It turned out that the user's C:\Temp folder had the System attribute set on. When he un-set that attribute, the problem went away. ODBC creates temporary files in the system temporary folder, and I guess when the VFP ODBC driver went to create a temporary file, it couldn't "see" the temp folder so it just created the file in the same folder as the table. Then, when it went to open the temporary file that it had created, it looked for it in the temp directory and couldn't find it. This problem will also occur when the Hidden attribute is set on the temp directory.

>Visual Studio 6.0 SP3, Windows NT 4.0 SP5
>
>I have a Visual Basic program that accesses a Visual FoxPro table via DAO and ODBC. I have never had a problem during the last 3 years or so, but I now have a user who is unable to open the table. When OpenRecordset() is used to open the FoxPro table, an error is generated that says it can't open file "C:\Temp\4IB0000K.TMP". Well, that file doesn't exist in the C:\Temp directory, but it is in the directory where the FoxPro table exists. In running the program on my machine, it appears that the temporary files are created in my C:\Temp directory. On the user's machine, he has TEMP and TMP environment variables that point to C:\Temp. So, it appears that the problem is that the Visual FoxPro ODBC driver is putting its temp files in the wrong location on the user's machine. Is there any way to specify where the ODBC driver puts its temporary files?
>
>Thanks in advance,
>Jonathan Cochran
Previous
Reply
Map
View

Click here to load this message in the networking platform