I have some dates in the following format : YYYY-MM-DD HH:MM:SS’
I would like it to be in this format: YYYY-MM-DD
Also, I am selecting another field with true and false values which I would like to convert to 0’s and 1’s
Is this possible?
I am doing this in a dts package and noticed one more thing:
The last field I am selecting is a guid which is enclosed in {brackets} is there a way to take the brackets out
Well, if you are using SQL Server 2008, then there is a
DATATYPEDATE, without time. You couldCASTyour date column to this format or convert it toVARCHAR(10)using the 120 format. So, if you are writing a query, you can use the following statement for your columns: