Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
rwaldron
Posting Yak Master
131 Posts |
Posted - 2009-06-26 : 11:37:18
|
Hi all,I am using SSIS to create xls from sql table.I have a data reader that reads sql table.date format in sql is yyyy-mm-dd 00.:00:00.000Final excel document also displays this format.My question is how to I transform this to dd/mm/yyyy and strip out the time.Ihave tried data transform task to use just date but i don't want to create a new column but rather transform the column inline..Any help pleaseRay.. |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-26 : 12:59:31
|
CONVERT(CHAR(10), Col1, 103) E 12°55'05.63"N 56°04'39.26" |
 |
|
rwaldron
Posting Yak Master
131 Posts |
Posted - 2009-06-26 : 13:11:46
|
Hiya and thx for replying.Where do I use this cast, in SSIS or in my actual sql queryRay.. |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-06-26 : 14:05:08
|
if in ssis. you can use cast in expression builder inside derived column task.see below link for detailshttp://www.sqlis.com/post/Expression-Date-Functions.aspx |
 |
|
|
|
|