SQL Server - trying to convert column to XML fails -
I am in the process of importing data from a legacy MySQL database into SQL Server 2005.
I have especially a table that could hurt me using a linked imported from MySQL server and MySQL ODBC driver, and I end up with this:
col name Datatype MaxLen OrderItem_ID BigInt 8 PDM_Structure_ID integer 4 LastModifiedDate dated 8 LastModifiedUser varchar 20 CreationDate dated 8 CreationUser varchar 20 XMLData text -1 OrderHeader_ID bigint 8 Contract_Action varchar 10 ContractItem int 4
My main focus is on the So I table base set "big data line" 1: And then I go ahead and change But when I try to change the column datatype that is now XML. I do get the message here: message 511, Level 16, State 1, Line 1 can not make a line of size 8077, which is more than the acceptable maximum line of 8060. The size statement has been aborted. Is which is rather surprising, seeing that column So why did SQL Server refuse to convert that column to XML data ??? any idea?? idea?? Can I see the investigation / change in my attitude ?? Update: I do not know who has changed, but the second attempt to import the raw data into SQL data to MySQL, I successfully that NTEXT -> VARCHAR (MAX ) Was able to convert columns to XML ... odd ..... anyhoo - now works - Thanks guys for all your input and recommendations! Very much appreciated! If you have enough storage space, then select PS -. One side this issue is not related to your problem, but you will have to see that you are not losing the Unicode character in the original MySQL XMLData area by this conversion since the text / varchar Data type may not support them will do. XMLData column - I need to clean it Make and make it so that I can convert it into XML datatype. Based on this I can use execution.
EXEC sp_tableoption 'OrderItem', '' large value types out of line, 1
XMLData for
VARCHAR (MAX)
and clean some of the XML stored in that area, all right So far
ALTER TABLE dbo.OrderItem ALTER column XMLData XML
XMLData only about 90 bytes up, and I especially SQL Server Instructions for storing "large data" off-line ....
VARCHAR (from) MAX)
table is in a new table with a similar schema, but with the XMLData installed as XML
- select either
Before you start using or using the table clearly
Comments
Post a Comment