Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

N' in Strings

Status
Not open for further replies.

itsmarkdavies

Programmer
May 22, 2001
87
0
0
GB
Apologies if this is something that I should know, but I was wondering if someone could explain to me why some Strings in SQL Server are preceeded with N'.

For Example, in Books Online under "sp_addlinkedserver", the example says :-

EXEC sp_addlinkedserver 'SEATTLESales', N'SQL Server'

and in Job Steps Created by Maintenance Plans, e.g. below :-

EXECUTE master.dbo.xp_sqlmaint N'-PlanID 2D10E1D2'

and in Job Scripts, e.g. below :-

SELECT @JobID = job_id FROM msdb.dbo.sysjobs
WHERE (name = N'TEST')



mark.davies@npower.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top