Hi there,
Not sure which section to put this in as it covers VB.NET, ORACLE and XML so here goes.
Say, for example, I have a table in my oracle data base as below:
Table Name = Test
col1, int
col2, varchar2
col3, int
What I would like to do is to run a query in VB that finds me the table name, the columns within it and the datatype of each column and then save that information to an XML file. Once thats done it will then go on to the next table and do the same thing until there are no tables left.
The XML format im after is:
<dataset>
<table>
<name>test</name>
<column>col1</column>
<type>int</type>
<column>col2</column>
<type>varchar2</type>
</table>
<table>
.....
</table>
</dataset>
can anyone provide some example code on how i might do that?
Not sure which section to put this in as it covers VB.NET, ORACLE and XML so here goes.
Say, for example, I have a table in my oracle data base as below:
Table Name = Test
col1, int
col2, varchar2
col3, int
What I would like to do is to run a query in VB that finds me the table name, the columns within it and the datatype of each column and then save that information to an XML file. Once thats done it will then go on to the next table and do the same thing until there are no tables left.
The XML format im after is:
<dataset>
<table>
<name>test</name>
<column>col1</column>
<type>int</type>
<column>col2</column>
<type>varchar2</type>
</table>
<table>
.....
</table>
</dataset>
can anyone provide some example code on how i might do that?