September 17, 2008 at 3:08 am
in my source flie one coulumn is date column like[17092008], i need to load destination in to [17-09-2008], can any body help on this.
Regards,
ss
September 17, 2008 at 8:49 pm
Dunnor if it works in Integration Services, but I Use STUFF to quickly add a couple of dashes.
--===== Setup a simple test.
-- This is NOT part of the solution
DECLARE @FlatDate CHAR(8)
SET @FlatDate = '17092008'
--===== Demo how STUFF works here
SELECT STUFF(STUFF(@FlatDate,5,0,'-'),3,0,'-')
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply