sql - Creating a check constraint for multiple specific inputs -


i assumed fine execute sql ommand this

installation' or 'software repair'

this didn't work tried

this didn't go great either, got missing expression data recovery

this gave me cannot validate sys.ch_servicetype -check constraint violated

does mean constraint in place? if not

how can enforce check constraint table require specific values?

thanks

use in keyword.

servicetype in ('training', 'data_recovery', 'consultation', 'software  installation', 'software repair') 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -