PC Review


Reply
Thread Tools Rate Thread

DataSet Max Length Compared to Oracle Varchar2

 
 
maloney1
Guest
Posts: n/a
 
      24th Nov 2008
Hello,

I have a field on an Oracle Database with a max length of 14 Byte, on
my dataset I have a max length for the column on the datatable of 14.
When the Database has an entry higher than 7 characters it is not
appearing inside the dataset.

Is there a mismatch between the Oracle 14 byte length and the max
length value in microsofts Datasets?

Some posts I have read hinted to doubling the MS dataset max length
and then adding two (14 +2 as the max length) this isn't clear why,
does anyone have a good explanation for this?

Thanks
John
 
Reply With Quote
 
 
 
 
Ignacio Machin ( .NET/ C# MVP )
Guest
Posts: n/a
 
      24th Nov 2008
On Nov 24, 10:00 am, maloney1 <malon...@gmail.com> wrote:
> Hello,
>
> I have a field on an Oracle Database with a max length of 14 Byte, on
> my dataset I have a max length for the column on the datatable of 14.
> When the Database has an entry higher than 7 characters it is not
> appearing inside the dataset.
>
> Is there a mismatch between the Oracle 14 byte length and the max
> length value in microsofts Datasets?
>
> Some posts I have read hinted to doubling the MS dataset max length
> and then adding two (14 +2 as the max length) this isn't clear why,
> does anyone have a good explanation for this?
>
> Thanks
> John


It might be because in .NET a string is a two bytes unicode char.
Try saving the string as ASCII
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO.NET Oracle Varchar2 BUG? =?Utf-8?B?cGx1bWVwcm9n?= Microsoft ADO .NET 2 25th Jan 2005 11:19 PM
Problem when accessing Oracle Procedure with varchar2 Mullin Yu Microsoft C# .NET 1 18th Jan 2005 09:04 AM
Memory-usage DataSet compared to XML-file-size dennis@hotmail.com Microsoft ASP .NET 0 24th Mar 2004 03:41 PM
Oracle's OLEDB: VARCHAR2 encoding bug / problem Rob Microsoft ADO .NET 0 28th Jul 2003 05:33 PM
OraOLEDB.Oracle: Corrupt varchar2 column data in result rows Rob Microsoft ADO .NET 0 24th Jul 2003 10:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 AM.