Page 1 of 1

How is validation controlled in SQL Server?

Posted: Wed 12 Jul 2017 17:28
by dwimberly
Can I use CHECK constraints? What about a trigger? Can I validate multiple columns in a single pass?

Thanks,

Doug

Re: How is validation controlled in SQL Server?

Posted: Tue 18 Jul 2017 14:30
by Shalex
dwimberly wrote:Can I use CHECK constraints? What about a trigger?
CHECK constraints and triggers work on the database side. Please enable Options > Edit > General > "Refresh all columns after commit" to retrieve the actual data inserted in the table.
dwimberly wrote:Can I validate multiple columns in a single pass?
Options > Edit > Error Handling > "Use transaction" allows you either insert all records or none of them if any error.