Page 1 of 1

Timestamp in the Dynamic_RDBMS stage in Sql server database

Posted: Tue Aug 05, 2008 3:04 pm
by cnu
Hi:
I am sending the currenttimestamp() from the transformer to created_dt field , which is specified as Timestamp() in the meatadata.
I am getting the below warning message.Please advice me what conversion is required to rectify the below warning.


Dynamic_RDBMS_Load_Stage_tbl,0: Warning: DsRGW.Dynamic_RDBMS_Load_Stage_tbl: [DataDirect][ODBC SQL Server Driver][SQL Server]Disallowed implicit conversion from data type nvarchar to data type timestamp, table 'WSO.dbo.TBL_WIRE_INFO_STAGING', column 'CREATED_DT'. Use the CONVERT function to run this query.

Thanks in advance
cnu

Posted: Tue Aug 05, 2008 6:09 pm
by cnu
HI !!

Can anybody knows, advice me regarding the above warning.

Thanks
cnu

Posted: Tue Aug 05, 2008 8:54 pm
by ray.wurlod
Learn patience.

If anyone has anything to contribute, they will.

It's the middle of the night in the Americas.

Re: Timestamp in the Dynamic_RDBMS stage in Sql server data

Posted: Wed Aug 06, 2008 12:56 am
by Nagasudheerkumar
Cnu,

1)check whether the datatype for the created_dt column is a Timestamp or not
2) If you still get the same problem Try with convert functions in transformer
3) pass the timestamp directly


cnu wrote:Hi:
I am sending the currenttimestamp() from the transformer to created_dt field , which is specified as Timestamp() in the meatadata.
I am getting the below warning message.Please advice me what conversion is required to rectify the below warning.


Dynamic_RDBMS_Load_Stage_tbl,0: Warning: DsRGW.Dynamic_RDBMS_Load_Stage_tbl: [DataDirect][ODBC SQL Server Driver][SQL Server]Disallowed implicit conversion from data type nvarchar to data type timestamp, table 'WSO.dbo.TBL_WIRE_INFO_STAGING', column 'CREATED_DT'. Use the CONVERT function to run this query.

Thanks in advance
cnu

Posted: Wed Aug 06, 2008 8:59 am
by cnu
Hi:
Yes,datatype for the created_dt column is a Timestamp .
I have passed the timestamp directly,getting the above warning.data is also not loading because of warning.
Please advice me which convert function can i use tr rectify.

Thanks
cnu

Posted: Wed Aug 06, 2008 10:59 am
by maheshsada
keep your target datatype as Timestamp but put a transformer before the DRS stage and use the below derivation

<Input Column Name>:(' 00:00:00.000')

In the Input Column name get the date in YYYY-MM-DD

Posted: Wed Aug 06, 2008 12:12 pm
by cnu
Mahesh:

The column is not coming from source,i am assigining Timestamp() in the target side in the transformer.
The datatype in the target also Timestamp.
Its a simple i am not using any tranformation here,but giving warning.

Thanks
cnu