February 4, 2010 at 2:51 pm
Hi
SELECT CONVERT(DATETIME,(STR(DATEPART(MONTH, CONVERT(VARCHAR(10),CONVERT(DATETIME,(STR(DATEPART(MONTH,CONVERT(VARCHAR(10),GETDATE(),101)))
+'/1/'+STR(DATEPART(YY,CONVERT(VARCHAR(10),GETDATE(),101)))),121)-370,101)))+'/1/'+STR(DATEPART(YEAR, CONVERT(VARCHAR(10),CONVERT(DATETIME,(STR(DATEPART(MONTH,CONVERT(VARCHAR(10),GETDATE(),101)))
+'/1/'+STR(DATEPART(YY,CONVERT(VARCHAR(10),GETDATE(),101)))),121)-370,101)))),111)
Basically I have query in an Oracle I converted that into SQL Server
for this I want which transformation is suites in SSIS
I didn,t see any function Convert while using the transformation I used derived and condition split but in that
we dont have Convert Function
Plz help me to solve this prob
Thanks!
Shiva
February 6, 2010 at 11:04 pm
What are the data types you are trying to convert from/to? The SSIS derived column transformation allows you to convert data types quite well.
Tim Mitchell
TimMitchell.net | @tmitch.net | Tyleris.com
ETL Best Practices
February 8, 2010 at 12:47 am
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply