Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

786 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