Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Remove 255 character limit from OLE DB .NET and Fix Data Corru


cfrphoto wrote:
So far, I have not found enough useful (high level) documentation.


The documentation is poor and you are sore. Hoping for a response or
action from Microsoft can only lead to more hurt. However, if you have
a specific issue you want to resolve or work around, you may have some
luck here.

I do not agree with the comment about using "memo" data. This seems

to
be an artifact of Access and older versions of SQLServer where the
varchar limit was 255.


It's a common misconception that MS Access is the same as Jet. MS
Access *uses* Jet. Excel also uses Jet. Jet may be officially
'depreciated' by Microsoft but it is still the native SQL engine for
both Access2003 and Excel2003.

Tracking down the *fact* that Excel uses the memo data type for a text
column/value that exceeds 255 characters is a case of 'join the dots'
in the documentation and a bit of old-fashioned testing e.g. try this
one:

PRB: Transfer of Data from Jet 4.0LEDB Source Fails with Buffer
Overflow Error
http://support.microsoft.com/default...b;en-us;281517
"If any field looks like text and the length of data is more than 255
characters, the column is typed as a memo field."

I suppose I could change the query parameters if they
were documented.


I think all the issues here *are* documented, albeit in a succinct and
fragmented fashion e.g.

How To Use ADO with Excel Data from Visual Basic or VBA
http://support.microsoft.com/default...b;en-us;257819
"IMEX=1 in the Extended Properties section of the connection string ...
enforces the ImportMixedTypes=Text registry setting"

there was no indication in
the documentation that Memo existed or had to be used for strings
greater that 255 characters. In that case, an exception should have
been thrown.


I agree the way Jet guesses data types for Excel is unsatisfactory but
throwing an exception when text 255 is detected would make the
process useless.

I think you need to accept the fact that memo does exist and work with
it. Otherwise, find another way to access the data e.g. automating an
instance of the Excel.Application object, working with the Biff8
format, etc.

What actually happened is that the string returned was from the a
different row. THIS IS A BUG.


This sounds like a bug but we've only got your word for it. For anyone,
even Microsoft, to investigate they need some steps to reproduce the
bug. Please post yours here.

Jamie.

--

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
Remove character at end of data Paul B[_3_] Excel Discussion (Misc queries) 8 November 2nd 08 05:13 PM
Remove data that preceeds a character Ty Excel Worksheet Functions 6 October 17th 08 06:59 PM
255 character limit when importing data Dmac_59 Excel Discussion (Misc queries) 0 October 31st 07 05:18 AM
Remove ' character from copied excel cell to match data Syndrome Excel Discussion (Misc queries) 9 March 7th 07 05:18 PM
Remove character from imported data jimmxz Excel Discussion (Misc queries) 4 February 19th 07 06:13 PM


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