Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2006

Tip: Looking for answers? Try searching our database.

DB2 .Net Provider vrs OLE DB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charlie - 27 Jan 2006 01:15 GMT
Howdy guys,

I'm migrating my data access layer from OLE DB to .Net Provider (V5R3)
and now I've an issue, some of my tables have columns names within a
special character $ (for instance, SD$9INID ).

When I execute a commandText
  Select SD$9INID From MYLIBRARY.MYTABLE

OLE DB returns a table with a column named SD$9INID and .Net Provider
returns a table with a column named "SD$9INID" and then my internal
business logic is broken!

Any ideas?... I need to enforce .Net Provider returns the same table
shema returned by OLE DB.

Tks.
Charlie - 27 Jan 2006 20:15 GMT
Ok..  I did a workaround.. after the execute the DataAdapter Fill
method, I rename all columns with Columns.ColumnName =
Column.ColumnName.Replace(sComma,sBlank).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.