Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using CREATE TABLE DDL on Excel creates two tables

Hello. I am using OLEDB 4.0 to create an excel file and store DataTable rows
into it. I am using

CREATE TABLE [SheetName] ([Column1] longtext, [Column2] longtext....

DDL and then write data using INSERT INTO ... DDL.

There are three strange things that i've encountered and will be glad to get
help from anyone:

1. If I use as a table name expression with spaces, the name is changed
to expression with underscore '_' symbol instead of spaces.
2. I can not set trailing '$' when creating a table, but when inserting
data I have to use the name with traling '$' otherwise the exception is
thrown. Moreover, if i get the scheme of the Excel file later I am getting
TWO tables instead of one: a first with the name without '$' and another the
same with trailing '$'. Nedless to say that visually Excel shows only a name
without '$'
3. If I am trying to do same operations using OLEDB 12.0 (Office2007) I
get invalid file.


If anyone knows how I can overcome above issues, please write me a code. I
am coding in C# but VB examples are as good as any other.
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
template creates invoice - how to create summary worksheet? Tony Barratt Excel Discussion (Misc queries) 13 November 25th 11 09:14 PM
Pivot table creates stacked column Catherine Charts and Charting in Excel 2 March 24th 10 11:09 PM
Pivot table creates blank table [email protected] Charts and Charting in Excel 2 October 17th 06 05:21 PM
Creates table instead of exporting data JT Excel Programming 0 March 17th 06 10:47 PM
How to create a template that creates and saves as sequencial num. Viper Excel Programming 4 December 7th 05 10:59 PM


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