Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2008, 01:24 PM
Authorized User
 
Join Date: Aug 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to tusharkale
Default

Can I convert entire my ntext column to XML type. But all xmls are stored in ntext with encoding UTF-8.

This will remove the need of conversion to xml for every id.


I will create new table with two column ID (int) and xml_doc( XML ). Copy my ntext column to xml_doc. before I need to do somethign with wncoding thing... which i dont know how to do it for an entire column..


then processing will be faster..once all processing done i will convert entire my column back into ntext and with encoding utf-8.


Is it possible????


 
Old July 24th, 2008, 01:25 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Code:
INSERT tblNewTable (xmlData) SELECT CAST(ntextData AS xml) FROM tblOldTable;
Just need to set up tblNewTable with an XML data type column etc.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
auto update from 1 table to column in another tabl headwaters Access 1 December 1st, 2008 08:39 AM
multiple column update query with Case vinod_yadav1919 SQL Language 4 July 3rd, 2008 06:53 PM
Update Column Serial Wise cancer10 Classic ASP Databases 9 October 23rd, 2006 10:46 AM
How can I update 2 rows in one column in SQL table babou Classic ASP Databases 6 March 9th, 2005 11:13 AM
How to Update row to differenct column Jane SQL Language 4 December 12th, 2004 08:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.