Handling special characters in column names in excel
- From: RC <sricar@xxxxxxxxx>
- Date: 7 May 2007 11:18:25 -0700
Hi,
We are using oleDb to write data to excel work***. When creating
columns we are not having any problems with special characters, the
following statement executes fine.
command.CommandText = "CREATE TABLE Apples ([Fruit Paste 1.1 (Apple)]
char(255))";
while inserting a value, the below line is throwing an exception and
it is because of this 1.1..
command.CommandText = "INSERT INTO [Apples$](Fruit Paste 1.1 (Apple))
VALUES("1")"
Are there any alternative ways to get this to work..I did not find
much documentation on this.
Thanks in advance,
.
- Follow-Ups:
- Prev by Date: Re: oledb and dates in vb.net 2003
- Next by Date: Re: Handling special characters in column names in excel
- Previous by thread: Re: Query regarding Multiple parameter set using OLEDB
- Next by thread: Re: Handling special characters in column names in excel
- Index(es):
Loading