BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: How to retreive a column type by using TADOConnection.Op

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Vlad Gonchar
Guest





PostPosted: Thu May 06, 2004 2:48 pm    Post subject: Re: How to retreive a column type by using TADOConnection.Op Reply with quote



It gives me types values as numbers. How I can convert them to real (ADO or
Delphi) types ?

"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote

Quote:


ADOConnection1.OpenSchema(siColumns
,VarArrayOf([Null,Null,'YourTablenamehere',null]),EmptyParam,ADODataSet1)
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



Back to top
Viatcheslav V. Vassiliev
Guest





PostPosted: Thu May 06, 2004 4:01 pm    Post subject: Re: How to retreive a column type by using TADOConnection.Op Reply with quote



Data types are ADO data types - look DataTypeEnum in ADOInt unit or
ADOTypeToFieldType function in ADODB unit (it is only in implementation
section but you can copy it into another unit).

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Vlad Gonchar" <VladG at frogware dot com> сообщил/сообщила в новостях
следующее: news:409a50ac$1 (AT) newsgroups (DOT) borland.com...
Quote:
It gives me types values as numbers. How I can convert them to real (ADO
or
Delphi) types ?

"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote in message
news:lrvl8058m3kilem32pbd0cvg9b19fvi2ul (AT) 4ax (DOT) com...


ADOConnection1.OpenSchema(siColumns

,VarArrayOf([Null,Null,'YourTablenamehere',null]),EmptyParam,ADODataSet1)
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]





Back to top
Vlad Gonchar
Guest





PostPosted: Thu May 06, 2004 7:28 pm    Post subject: Re: How to retreive a column type by using TADOConnection.Op Reply with quote



Quote:
ADOConnection1.OpenSchema(siColumns
,VarArrayOf([Null,Null,'YourTablenamehere',null]),EmptyParam,ADODataSet1)

Please, give more details on the VarArrayOf parameters.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.