RSS Forums RSS
Please support our MS SQL advertiser: Programming Forums

Field Constraint (don't want negative numbers)

Join Date: Jul 2005
Location: Dallas, TX
Posts: 482
Reputation: campkev is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Field Constraint (don't want negative numbers)

  #2  
Apr 14th, 2006
ALTER TABLE TableName
ADD CONSTRAINT
ConstraintName
CHECK
(FieldName >= 0)
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:11 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC