LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Overwriting existing data in an Excel worksheet using ADO.Net

Joel Gordon wrote:

I have changed my code to always attempt to
DROP the table. Unfortunately when I attempt to write the data table

to a
workbook which has had a successful DROP table done then I get the

exception :

System.InvalidOperationException: Dynamic SQL generation for the

UpdateCommand
is not supported against a SelectCommand that does not return any key

column
information.


See:

PRB: Error Occurs When You Use ADO.NET OLEDbDataAdapter to Modify Excel
Workbook
http://support.microsoft.com/default...b;en-us;316756

Another 'resolution' to the problem us to write the dynamic SQL
yourself e.g. using Jet's INSERT INTO..SELECT syntax, perhaps using an
ODBC connection to the data source. Old technology yes, but then so is
Excel <g.

Jamie.

--

 
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
Overwriting an existing Excel workbook Jenni Excel Discussion (Misc queries) 6 January 5th 07 06:32 PM
Excel 2003, Convert EXISTING Worksheet Data to XML? [email protected] Excel Discussion (Misc queries) 4 November 16th 05 04:45 AM
can not add data to existing Excel worksheet sullyhd Excel Discussion (Misc queries) 1 May 2nd 05 06:01 PM
Overwriting existing data in an Excel worksheet using ADO.Net Joel Gordon Excel Programming 3 December 1st 04 08:43 AM
Overwriting an existing workbook without having to click yes in the prompt box Ian M[_2_] Excel Programming 2 May 3rd 04 03:41 AM


All times are GMT +1. The time now is 06:14 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"