I have one datetime field(startdatetime) store in Netezza DB as varchar because SSIS is truncating milisec and I want datetime till milisec.
So now I have startdatetime value is like 2014-1-2 11:23:31.921000000 and I want it 2014-01-02 11:23:31.921 Length should be 23. How can I do that?
So what I am doing is I want to do incremental load so i am getting max(startdatetime) from the table and compare it to startdatetime (datetime data type) field coming from source so when startdatetime > max(startdatetime), load that new data. So for that purpose I need to convert it to like 2014-01-02 11:23:31.921
Thanks for the help.