Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Update Table is not working in BODS through script

$
0
0

Hi Experts,

 

I have a problem updating SQL server 2008 table through BODS 4.2

 

My design as below

 

Job--->Worflow--> Script1--->Dataflow--->Script2

 

Script1: Here we are updating starttime before dataflow start. The below script is working fine for updating Startload.

 

SQL('DS_ODS','UPDATE Timestamp_Tables SET StartLoad = CURRENT_TIMESTAMP WHERE TableName = \'30DayOrderDemand\'');

 

 

Script2: Here we are updating endtime after dataflow completes. This is not working and its throwing error like incorrect syntax near '30' but its working for above script. Here only column name is different and both the cloumns are same datatypes Datetime.

 

SQL('DS_ODS','UPDATE Timestamp_Tables SET LastLoad = CURRENT_TIMESTAMP WHERE TableName = \'30DayOrderDemand\'');

 

 

Thanks & Regards,

Balamurugan G


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>