I'm curious if SQL Server 2005 has an option like Oracle and DB2 to force an exception to be thrown if truncation would need to occur to input that data. I know this can be validation in the client-app, I'm looking for a solution w/ regard to SQL Server throwing this exception.
Thanks!

Stored Proc/Table Truncation
SRobb
Gwenael
SEE ANSI_WARNINGS
Please try the following; it works for me in SQL8.0/7.0
SET ANSI_WARNINGS ON
create TABLE #test ( t1 varchar(3) not null);
INSERT #test (t1) values ('test')
SELECT * FROM #test
DROP TABLE #test
gives
Server: Msg 8152, Level 16, State 9, Line 11
String or binary data would be truncated.
The statement has been terminated.
t1
Tim S