March 16, 2010 at 1:59 pm
Hello,
Please help me in resolving an issue. I have text file with one of the column as value 0000002008,I need to trim the leading zeros and only insert 2008 value to the database table.
Can this be handled on Data Column Transformation , if yes then please suggest the expression that will help in achieving it..
March 16, 2010 at 2:40 pm
Have you tried transforming it to an int, and then back to a string? That seems like it should do what you're trying to accomplish.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 16, 2010 at 9:21 pm
No I was not able to do that , can you please help me in doing this
March 17, 2010 at 12:06 am
WayneS (3/16/2010)
Have you tried transforming it to an int, and then back to a string? That seems like it should do what you're trying to accomplish.
Ummm... why would you convert it back to a string?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply