SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Length Validation Before Truncat Error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

154 Posts

Posted - 10/17/2012 :  10:52:34  Show Profile  Reply with Quote
I have about 30 columns that I need to check the length on to ensure they are is less than or equal to 50. I know how I can achieve this, but is there a quick and easy was to do this without having to create derived columns or conditions on each and every column? Each record should log with an error message if truncation may occur (but i don't want to get to the actual insertion of the data at the table-level for this to fail and log).

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/17/2012 :  23:31:06  Show Profile  Reply with Quote
SSIS gives you warning by default if length of column falls below target table column length

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000