Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return column type from database

Status
Not open for further replies.

AtleOlsen

Programmer
Aug 7, 2003
9
DK
Is there anyone than can tell me how to return the type of a column in a oracle database as a string in VB??

When every things go black,
scream, change the fuse and
start over!!
ARRGH!!
 
Are you using an ADO recordset. If so I would expect you could reference, e.g.

rs.fields("ClientName").Type
 
Thanks a lot! It seems to work, though I found a different way around it, selecting the datatype from user_tab_column table in oracle by table name and columnname ,but thanks anyway. (I think that is what VB does when using rs.Fields("ClientName").type

When every things go black,
scream, change the fuse and
start over!!
ARRGH!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top