N'string' indicates that the string is Unicode data. Please read about
Unicode in Books Online, and the datatypes nchar and nvarchar.
The code is just checking to see if a particular table exists before issuing
the drop command. Table names and property names are stored as Unicode
characters, so they use the N.
HTH
--
------------------------------------
Kalen Delaney
MCSE, SQL Server MCT, MVP
www.InsideSQLServer.com
Feed Someone for Free Today:
www.TheHungerSite.com
Quote:> Can somebody explain what this next statement is doing?
> if exists (select * from sysobjects where id =
> object_id(N'[dbo].[CLCHARGE]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
> drop table [dbo].[CLCHARGE]
> GO
> More specifically, what does the N do?
> Regards