Hi,
Can anyone explain me how many constraints at most can be set on any given column of a table in SQL Server.
Hi,
Can anyone explain me how many constraints at most can be set on any given column of a table in SQL Server.
Constraints:
Don't think there is a practical limit, I just created a table with more than 9k constraints:
create table #TheresNoLimit (
id int,
constraint constr1 check (id = 1),
constraint constr2 check (id = 1),
constraint constr3 check (id = 1),
...
constraint constr9985 check (id = 1)
)
"It depends"
Notes:
Some taken from here: Maximum Capacity Specifications for SQL Server