Solved

10774: sql server 2000 y unicode caracteres

Posted on 2014-10-28
2
277 Views
Last Modified: 2014-10-29
I have a table with records of type "text" is in a SQL Server 2000.
and a user wants to put a word in Greek and when you save it does not recognize

I've been watching and for a field recognize this data must be brought type "NVARCHAR" or "NTEXT" and to keep the prefix "N" + field, and I've tasted in a sql server 2008 and it works, the problem is that SQL Server 2000 does not allow me to change the data type "text" to "NVARCHAR" or "NTEXT"

I get: "Mens 4928, Level 16, State 1, Line 1.
You can change the 'remarks' column because it is 'text'. "

Do you think there is any other way for that field supports such values?
0
Comment
Question by:enrique_aeo
  • 2
2 Comments
 
LVL 48

Expert Comment

by:PortletPaul
ID: 40409670
what SQL did you use when you got that message?

and; did that message say "cannot change"  ?
0
 
LVL 48

Accepted Solution

by:
PortletPaul earned 500 total points
ID: 40409682
SQL 2000 is 14 years old already, it is time to consider upgrading.

Make absolutely certain you have backups before doing any of this.

However, it appears you can't just alter the data type  here. One workaround is to RENAME the old column to [remaksOLD] and then add a new column of type NTEXT [remarks]

Then update [remarks] with content of [remarksOLD]

Once you are satisfied all is well then the [remaksOLD] column could be removed from the table.

Make absolutely certain you have backups before doing any of this.

Also note. BOTH TEXT/NTEXT are DEPRECATED in later versions of SQL Server and when upgrading you should consider changing to VARCHAR(max)/NVARCHAR(max) instead
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

746 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

15 Experts available now in Live!

Get 1:1 Help Now