Solved

Change nchar to nvarchar

Posted on 2011-09-29
2
559 Views
Last Modified: 2012-05-12
Hi,

Within Management Studio -> Edit table, is it safe to change nchar(2000) to nvarchar(2000) without losing data?

Thanks,

Rich
0
Comment
Question by:rito1
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 36813582
yes, it is safe.
normally, you do an UPDATE of the table (all rows) to trim away the trailing spaces from the nchar, though, because the change of the data type will not do that implicitly.
0
 
LVL 1

Author Closing Comment

by:rito1
ID: 36813592
Excellent, thanks
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

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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