Hi,
I have this code and it found correctly:
SET LANGUAGE 'English';
EXEC sp_dropmessage 20090928, 'Spanish'
EXEC sp_dropmessage 20090928
EXEC sp_addmessage 20090928,16,'Esto es solo una prueba %s %s'
EXEC sp_addmessage 20090928,16,'Just a test %s %s','spanish'
RAISERROR (20090928,16,1,'detail1','detail2')
Server Response:
Msg 20090928, Level 16, State 1, Line 9
Esto es solo una prueba detail1 detail2
Perfect!!!!
Now I need my server in spanish!
so I do that:
SET LANGUAGE 'Spanish';
EXEC sp_dropmessage 20090928
EXEC sp_dropmessage 20090928, 'english'
EXEC sp_addmessage 20090928,16,'Just a test %s %s', 'english'
EXEC sp_addmessage 20090928,16,'Esto es solo una prueba %s %s'
RAISERROR (20090928,16,1,'detail1','detail2')
Well. SQL response with an error like this:
"Especificación de formato no válida: 's %s'." -> like a Format not valid message...
In english "mode" server found perfectly...
Why changing default language RAISEERROR not found???
Note that setting the server in Italian, Franch or other it found perfectly...
Thk!
Marco CZ