Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

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

Brittney10
Posting Yak Master

USA
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).

visakh16
Very Important crosS Applying yaK Herder

India
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
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000