Solved

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

Posted on 2008-06-20
1
524 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
I have a large data set and a SSIS package. How can I load this file in multi threading?
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now