Salut,

j'ai une contrainte d'unicité dans une table :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
ALTER TABLE [dbo].[XXX] ADD  CONSTRAINT [UQC_XXX] UNIQUE NONCLUSTERED 
(
	[XXX_NOM] ASC,
	[XXX_PRENOM] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
et je ne vois pas bien à quoi peuvent servir les 2 ASC.

La doc MSDN n'est pas d'une grande aide :
[ASC | DESC]

Specifies the order in which the column or columns participating in table constraints are sorted. The default is ASC.
A quoi peut bien servir un ordre de tri dans la définition une contrainte ?