Unix Technical Forum

Re: Trailing spaces in char fields with ADO.Net and OleDB

This is a discussion on Re: Trailing spaces in char fields with ADO.Net and OleDB within the Informix forums, part of the Database Server Software category; --> There is no attribute called "trim char=true" in connection string for Infomrix .NET Provider. However you should be able ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 04:33 PM
Sheshnarayan Agrawal
 
Posts: n/a
Default Re: Trailing spaces in char fields with ADO.Net and OleDB

There is no attribute called "trim char=true" in connection string for
Infomrix .NET Provider. However you should be able to do string.Trim()
and/or you might think of using VARCHAR instead of CHAR column.

-Shesh




"Philippe Requilé" <Philippe.Requile@falcon.be.nospamplease>
Sent by: informix-list-bounces@iiug.org
14/02/2008 12:44

To
informix-list@iiug.org
cc

Subject
Trailing spaces in char fields with ADO.Net and OleDB






I use the ado.net IdxConnection to connect to an informix database.
Unfortunately every field of type char in the dataset has trailing blanks.
How can I get rid of them?

(In DbExpress I could put "trim char=true" in the connectionstring.)


_______________________________________________
Informix-list mailing list
Informix-list@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com