When we define a record set in VBA & read the data from database, recordset converts its datatype to Table’s column data type.
Dim rs as adobb.RecordSet
Set rs = CmdSqlData.Execute() ' After this rs fields will be stored based on table's datatype
Is there any way to set the recordset itself to String and Perform,
Set rs = CmdSqlData.Execute()
For Eg: if there is a timestamp value(which has integer value) in Database table definition, Recordsset sets its field datatype to timestamp.
The problem is , In database,
Time value is 12345 (Not date & time) but when record set reads it, it
comes as For Eg: 23-06-2012
10:15:23
I wanted the value as 12345
I managed to convert this timestamp alone for now. But There are number of timestamp format available. I can not automate the SQL query to convert from different datatype to string.
I require VBA to read the TERADATA VALUE as string
What i did ,
Kindly note there are so many datatypes available in teradata (Around 400+) , i can not convert everthying as above.