Hi localhost,
I have been following your steps, however, I didn't reproduce it.
XmlWriteMode.WriteSchema will write schema together with data into xml.
Please try to put a DataGrid on the form to display the DataSet. And use
Select * From ::fn_listextendedproperty ('TableType', 'user', 'dbo',
'table','ZTestTable',null, null) in Query Analyzer to check if the extend
properties have been added to the table. Please also make sure that you
have connected to the correct database.
The following is the xml file I have get with WriteXml.
<?xml version="1.0" standalone="yes"?>
<OutSet>
<xs:schema id="OutSet" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="OutSet" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Table">
<xs:complexType>
<xs:sequence>
<xs:element name="objtype" type="xs:string" minOccurs="0" />
<xs:element name="objname" type="xs:string" minOccurs="0" />
<xs:element name="name" type="xs:string" minOccurs="0" />
<xs:element name="value" msdata

ataType="System.Object,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<Table>
<objtype>TABLE</objtype>
<objname>ZTestTable</objname>
<name>TableType</name>
<value>A test table.</value>
</Table>
</OutSet>
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."