What is the purpose of the "N" preceding the parameter values in the
SQL examples?
Here is an example copied from Books Online, SP_ATTACH_DB:
EXEC sp_attach_db @dbname = N'pubs',
@filename1 = N'c:\Program Files\Microsoft SQL
Server\MSSQL\Data\pubs.mdf',
@filename2 = N'c:\Program Files\Microsoft SQL
Server\MSSQL\Data\pubs_log.ldf'
I've found that my sp_attach_db routine works without the "N", but I
need to know what it is that I don't know.
Thank you everybody for all your help.