Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Datetime dcate firmat issue

$
0
0

I am using Execute sql task in my SSIS package, and I am trying to make the following query:<o:p></o:p>

Select max(sqlid) from archive.dbo.Archivebbxfbhdr
where timein <= ?<o:p></o:p>

Where ? is my input parameter variable migration_start which is a datetime.<o:p></o:p>

My issue is that variable name migration_start which give me default format of 6/11/2015 1:26 AM

But I expecting to get in 2015-06-11 01:26:22.813 format.<o:p></o:p>

How I can I change the datetime format of my variable to be (yyyy/mm/dd)hh:mm:ss)?<o:p></o:p>

Thanks.<o:p></o:p>



Thankx &amp; regards, Vipin jha MCP


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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