Solved

what does the N stand for in dbcc shrinkdatabase(N'pubs')

Posted on 2008-06-20
1
532 Views
Last Modified: 2012-06-27
Hi,

Doea anyone know what does the N stand for in dbcc shrinkdatabase(N'pubs') ?

thanks
H
0
Comment
Question by:hraja77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
cpleong99 earned 500 total points
ID: 21829677
N'pubs' is still a 'pubs' string.

the N' tells the SQL that it is a uni-code string.

I use N to supporting 2 bytes characters wording, such as Chinese wording.
For example,
select * from table1 where ItemName = N'ÅN'


0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question