Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Using Alter Statemement to add a constraint to set a column 'Date' to be less than (

$
0
0

Trying to add the following constraint using ALTER Statement ( with ADD CHECK):

ALTER TABLE Table_Name WITH NOCHECK

ADD CHECK (Column_Date <= Today)

Need to get the property to "Date should never be > Today's date" ..hope I worded that correctly

Thanks in advance for any advice!


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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