5 pts.
 Create error message for check constraint
I was wondering if there was a way to create an error message that displays when data is entered into a table in the wrong format. (Check constraint).

Software/Hardware used:
ASKED: March 16, 2008  2:51 AM
UPDATED: September 30, 2008  6:06 PM

Answer Wiki:
When data is entered into a column of the wrong data type an error will be returned already. For example is a column has the data type of INT and you try to put text data into the column the database will return an error message. If you want a text field and you add a constraint to it and the new value does not meet the requirements of the constraint an error message will return an error message.
Last Wiki Answer Submitted:  March 16, 2008  5:10 am  by  Denny Cherry   64,520 pts.
All Answer Wiki Contributors:  Denny Cherry   64,520 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.

 64,520 pts.