Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Temp folder location for ACE/JET ODBC driver for Excel/Access

The ACE/JET drivers expect that there is a Temp folder before it can do any
work. Usually, this is not an issue. However, if the app calling ACE is
running as a Windows Service (using the SYSTEM account) on a 64-bit XP PC
(using WOW, Windows-on-Windows), the required Temp folder may not exist, as
system32\config\systemprofile is redirected to SysWOW64\config\systemprofile.

I need to ascertain where the Temp folder is expected by ACE, so I can
create it if it's not already there. I've used different approaches to find
the Temp folder location (GetTempPath, SHGetFolderPath, SHGetKnownFolderPath,
"Shell Folders" regsitry entry and "Environment" registry entry together with
the USERPROFILE environment variable). Again, these all work fine for regular
users, but when called under SYSTEM, all these methods return different
locations for the Temp folder (and they're not even consistent between XP,
Vista and Windows 7).

So, my question: How does the ACE driver determine the location of the temp
folder? If the folder doesn't exist, any ACE request will result in:

ERROR: CLI error trying to establish connection: [Microsoft][ODBC Microsoft
Access Driver] Your network access was interrupted. To continue, close the
database, and then open it again.

Thanks for any help!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC Microsoft Access Driver Login Failed Sue[_2_] Excel Discussion (Misc queries) 1 October 10th 08 08:09 AM
ODBC Microsoft Access Driver Login Failed - Excel 2003 Neil Holden Excel Discussion (Misc queries) 0 October 6th 08 08:54 AM
ODBC Microsoft Access Driver Login Failed BARRIOSWJ Excel Worksheet Functions 0 March 6th 07 10:20 PM
Microsoft][ODBC SQL Server Driver]Syntax error or access violation Jordan Excel Discussion (Misc queries) 0 July 6th 05 06:58 PM
Using VC++, ODBC Excel Driver: Access specific worksheet? Ryan Excel Programming 0 May 27th 04 09:18 PM


All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"