Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to capture full error message passed back from db engine?

$
0
0

If i have the following table in sql server

create dbo.null_test (id int not null, Code varchar(10) not null)

and I try to insert a null

INSERT INTO dbo.null_test values (1, null)

I get the following error

Msg 515, Level 16, State 2, Line 1

Cannot insert the value NULL into column 'Code', table 'dbo.null_test'; column does not allow nulls. INSERT fails.

The statement has been terminated.

But if i try the same in a data flow I only get the the following from the oledb destination

"The value violated the integrity constraints for the column."

Not quite to the same level of usefulness. Is this a bulk insert issue that we're stuck with? ie does the bulk insert command/sqlBulkCopy return these generic error messages and SSIS is just showing what it's given?


Jakub @ Adelaide, Australia


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>