joni2000de
Goto Top

MSSQL Wert für Variable - wofür steht das N?

Hallo Admins,

ich habe eine Verständnisfrage. Wenn in MSSQL Werte für Variablen angegeben werden steht oft ein N mit dabei. Wofür ist das. Ich habe diesbezüglich leider nichts brauchbares gefunden. Danke für eure Hilfe.

EXEC HumanResources.uspGetEmployees @lastname = N'Ackerman', @firstname = N'Pilar';

Gruß Joni

Content-Key: 178549

Url: https://administrator.de/contentid/178549

Printed on: April 25, 2024 at 11:04 o'clock

Member: gemini
gemini Jan 08, 2012 at 14:19:10 (UTC)
Goto Top
Hallo Joni,

das N' (National language character set ) symbolisiert Unicode-Zeichen. You must precede all Unicode strings with a prefix N when you deal with Unicode string constants in SQL Server

Gruß,
gemini
Member: joni2000de
joni2000de Jan 08, 2012 at 14:22:10 (UTC)
Goto Top
Danke
Gruß Joni