Timestamp in the Dynamic_RDBMS stage in Sql server database

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Timestamp in the Dynamic_RDBMS stage in Sql server database

Post 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
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Post by cnu »

HI !!

Can anybody knows, advice me regarding the above warning.

Thanks
cnu
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Learn patience.

If anyone has anything to contribute, they will.

It's the middle of the night in the Americas.
Last edited by ray.wurlod on Wed Aug 06, 2008 1:20 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Nagasudheerkumar
Premium Member
Premium Member
Posts: 55
Joined: Tue Apr 24, 2007 1:26 am

Re: Timestamp in the Dynamic_RDBMS stage in Sql server data

Post 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
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Post 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
maheshsada
Participant
Posts: 69
Joined: Tue Jan 18, 2005 12:15 am

Post 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
cnu
Premium Member
Premium Member
Posts: 38
Joined: Fri Jan 11, 2008 10:04 am

Post 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
Post Reply