Hi All,
Can anyone help with the following problem? I have a database which
contains a table with a 'text' field, and the text field contains an
xml document - typically 50-100K. Now I'd like to make use of SQL
Server 2005s XMLData type. To do this I have created a new field of
the 'xmldata' datatype, and run an SQL statement to update the contents
from one field to another - hoping to end up with a complete table of
xml (based on the old text field).
The problem I have is after a minute or so, it must come across an
badly-formed xml fragment because I get the following message:
Msg 9436, Level 16, State 1, Line 1
XML parsing: line 1, character 67640, end tag does not match start tag
Can I turn off the checking during the update, or is it not possible to
add badly formed data to the xmldata field. Any help appreciated as
the table runs into tens of thousands of rows, so I can't really check
the contents of each!
Many thanks,
Duncan. 1 1986
(DS********@goo glemail.com) writes: Can anyone help with the following problem? I have a database which contains a table with a 'text' field, and the text field contains an xml document - typically 50-100K. Now I'd like to make use of SQL Server 2005s XMLData type. To do this I have created a new field of the 'xmldata' datatype, and run an SQL statement to update the contents from one field to another - hoping to end up with a complete table of xml (based on the old text field).
The problem I have is after a minute or so, it must come across an badly-formed xml fragment because I get the following message:
Msg 9436, Level 16, State 1, Line 1 XML parsing: line 1, character 67640, end tag does not match start tag
Can I turn off the checking during the update, or is it not possible to add badly formed data to the xmldata field. Any help appreciated as the table runs into tens of thousands of rows, so I can't really check the contents of each!
Indeed, you can only pass valid XML fragments to the xml data type. They
don't have to be valid documents, that is have exactly one top-level tag,
but apart from that they must follow the XML syntax. The reason is that
the XML is stored an internal format, so SQL Server have no idea of what
do with the poorly formed XML.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se
Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Flare |
last post by:
In meen. primary keys, NOT NULL, IDENTETIES...et.c
I have to do a maunally, one time, building of a database. Sometables has to
stay an some are to be exchanged. The foreignkey inforcemnt ill do for my
self so everything is correct. I just need to be allowed to de thede task
for a while. Is it impossible?
Regards
Anders
|
by: M A Srinivas |
last post by:
Hello,
I would like to know is it possible to disable drop database for sa
or sysadmin. If saor sysadmin needs to drop the database , he/she may
have to change status in one of the system tables (sysdatabases ?) and
then only database can be dropped . This is to avoid dropping the
database by mistake by sa.
In books online under drop database
System databases (msdb, master, model, tempdb) cannot be dropped
|
by: Rob Smeets |
last post by:
Hi
I was wondering, is it possible to disable the back button in internet
explorer.
Our Website is hosting a Siebel website, and the problem is that Siebel has
problems with the use of the back button in internet explorer. I can't make a
customized internet explorer because the site must be accesible anywere.
So i need to do it from the server side... Any Ideas??
Thanks in Advance,
|
by: Bob Bedford |
last post by:
I create checkboxes using datas from a database (with PHP).
I store all values in an array, as I must pass this value like a Form value.
Now, in some cases, when a checkbox is selected, I must disactivate other
checkboxes.
How can I do this ?
here is the code:
|
by: ORC |
last post by:
Hi,
Is it possible to disable an event like e.g. disabling:
private void textBox1_TextChanged(object....) ?
Thanks,
Ole
| |
by: MJB |
last post by:
I am using the embedded ActiveX IE WebBrowser component in my C#
application. I want to be able to Enable/Disable javascripting
programmatically. I was wondering if there was a way to achieve this? I
was hoping maybe there was a registery entry I could modify directly. Any
help will be appreciated.
Thanks,
Matt
|
by: Stan Huff |
last post by:
Is there any way to disable the "params" on a particular invocation so that
one can pass an array containing the arguments and not have receiver get an
array having you argument array stuffed into the first index?
I have worked around this by getting the MethodInfo via reflection and
invoking it there. Is there a simpler way?
Thanks,
Stan
|
by: Arno R |
last post by:
Hi all,
Is the above possible?
I guess I need an API call for this ? How and where to find this?
One of my new apps is used as a sort of 'dedicated' thing.
Users see an empty desktop with *only* two buttons. They only click a button to start the app.
(They have two apps they need to work with)
When they minimise the app (and some do this accidently...) the app is NOT visible anymore in a taskbar or so.
In fact there is NO taskbar... ...
|
by: prado |
last post by:
I want to disable a table with javascript. In this table i have 'n'
record and each record has 3 buttons. If you click a button does an
action. I want to disable the all table.
is there any way to disable all this table without have to disable each
button of each record?
Thanks
|
by: markryde |
last post by:
Hello,
Is it possible in csharp to disable overridding of a class ?
Regads,
MR
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |