Can anyone tell me how I can make sure my result shows both Date and Time when the source is a smalldatetime field? The results are truncated and only the date is showing.
How are you displaying the smalldatetime field? A query in Query Analyzer, a web page etc.?
Datetime columns are stored in SQL Server as the number of seconds since a certain date. To format the display of datetime columns, use the CONVERT function with the style parameter to format the result as character data, e.g.
to display the default format, mon dd yyyy hh:miAM/PM
and so on.
Hope that helps,
Nathan
----------------------------------------
Want to get a good response to your question? Read this FAQ! -> faq183-874
----------------------------------------
Thanks for your response. I found that I needed to set up the transformation step so it used the Copy Column instead of using VB Script. It seems to work now.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.