When I read the MSDN example raiserror:
RAISERROR (N'This is message %s %d.',
10,
1,
N'number',
5);
GO
Why does doc use %sto indicate N'number'and %dto indicate the 5second argument
MSDN records the following:
For example, in the following RAISERROR expression, the first argument N'number 'replaces the first conversion specification% s; and the second argument 5 replaces the second conversion specification% d.
My question is: how to explain this? Why not use others such as %aor %b. Anyone else %+aphacan replace it. I just want to understand the meaning.
source
share