Results 1 to 2 of 2

Thread: syntax question

  1. #1
    Alex Guest

    syntax question

    example from script of job
    ....
    SELECT @JobID = job_id
    FROM msdb.dbo.sysjobs
    WHERE (name = N'Start new error log file at Midnight&#39


    Would you please explain me why MS use
    WHERE (name = N'Start new error log file at Midnight&#39
    and not
    WHERE (name = 'Start new error log file at Midnight&#39

    what is use of N

    Thanks



  2. #2
    CrankyDBA Guest

    syntax question (reply)

    The leading uppercase N creates a Unicode string.


    ------------
    Alex at 6/13/01 8:44:30 AM

    example from script of job
    ....
    SELECT @JobID = job_id
    FROM msdb.dbo.sysjobs
    WHERE (name = N'Start new error log file at Midnight&#39


    Would you please explain me why MS use
    WHERE (name = N'Start new error log file at Midnight&#39
    and not
    WHERE (name = 'Start new error log file at Midnight&#39

    what is use of N

    Thanks



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •