Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Excel ODBC driver created table/data not persistent

I connect to an Excel spreadsheet using Microsoft Excel Driver (*.xls)
4.00.6305.00 successfully and I am able to create a new table and insert data
into the the new table and retrieve the inserted new data successfully.

On closing the application however, the new table and its data are gone and
the spreadsheet is never updated. Seems like everything is done in memory.

I am using autocommit mode and issuing an ODBC SQLEndTran/SQL_COMMIT after
both creating the table and inserting the data, as usaul and that works fine
with all other ODBC data sources but not the Excel ODBC data source.

What am I missing?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Excel ODBC driver created table/data not persistent

Correction: I am actually not calling SQLEndTran because the driver reports
it does not support transactions
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Excel ODBC driver created table/data not persistent

OK. I found out the cause of this issue was a code path that skipped calling
::SQLDisconnect before freeing connection handle. Now it all works
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
64 bit ODBC driver for Excel (Server 2008) NicAC Excel Discussion (Misc queries) 0 October 28th 09 11:34 AM
ODBC Microsoft Access Driver Login Failed - Excel 2003 Neil Holden Excel Discussion (Misc queries) 0 October 6th 08 08:54 AM
Free XML ODBC driver for EXCEL Pete Jones Excel Discussion (Misc queries) 0 March 28th 08 03:42 PM
ODBC Driver/Import Data Andy Excel Discussion (Misc queries) 0 May 12th 05 09:10 PM
xl odbc driver, Excel 2003 johnny_2005 Setting up and Configuration of Excel 0 February 15th 05 10:08 PM


All times are GMT +1. The time now is 04:59 PM.

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

About Us

"It's about Microsoft Excel"