473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

get sql server schema to xml?

Hello,

How can I get table/column schema of a sql server database? i want to
convert the entire schema into an xml file.

thanks in advance.
Nov 15 '05 #1
5 1180
You can use a DataReader's GetSchemaTable method
"suzy" <su**@spam.com> wrote in message
news:ck***************@news-binary.blueyonder.co.uk...
Hello,

How can I get table/column schema of a sql server database? i want to
convert the entire schema into an xml file.

thanks in advance.

Nov 15 '05 #2
Oops, sorry for not posting the link... you can do it with the Connection
Object as well... here's a pretty good discussion of it..
http://msdn.microsoft.com/library/de...omdatabase.asp
"William Ryan" <do********@comcast.nospam.net> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
You can use a DataReader's GetSchemaTable method
"suzy" <su**@spam.com> wrote in message
news:ck***************@news-binary.blueyonder.co.uk...
Hello,

How can I get table/column schema of a sql server database? i want to
convert the entire schema into an xml file.

thanks in advance.


Nov 15 '05 #3
great thanks.... i will give that a try :)

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Oops, sorry for not posting the link... you can do it with the Connection
Object as well... here's a pretty good discussion of it..
http://msdn.microsoft.com/library/de...omdatabase.asp "William Ryan" <do********@comcast.nospam.net> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
You can use a DataReader's GetSchemaTable method
"suzy" <su**@spam.com> wrote in message
news:ck***************@news-binary.blueyonder.co.uk...
Hello,

How can I get table/column schema of a sql server database? i want to
convert the entire schema into an xml file.

thanks in advance.



Nov 15 '05 #4
The example only lists tables. Any idea on how to get additional
information in one query? (ie: field/column information)?

"suzy" <su**@spam.com> wrote in message
news:%9***************@news-binary.blueyonder.co.uk...
great thanks.... i will give that a try :)

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Oops, sorry for not posting the link... you can do it with the Connection Object as well... here's a pretty good discussion of it..

http://msdn.microsoft.com/library/de...omdatabase.asp
"William Ryan" <do********@comcast.nospam.net> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
You can use a DataReader's GetSchemaTable method
"suzy" <su**@spam.com> wrote in message
news:ck***************@news-binary.blueyonder.co.uk...
> Hello,
>
> How can I get table/column schema of a sql server database? i want to > convert the entire schema into an xml file.
>
> thanks in advance.
>
>



Nov 15 '05 #5
If you use the DataReader for example, it gives you all three.
"suzy" <su**@spam.com> wrote in message
news:B3***************@news-binary.blueyonder.co.uk...
The example only lists tables. Any idea on how to get additional
information in one query? (ie: field/column information)?

"suzy" <su**@spam.com> wrote in message
news:%9***************@news-binary.blueyonder.co.uk...
great thanks.... i will give that a try :)

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Oops, sorry for not posting the link... you can do it with the Connection Object as well... here's a pretty good discussion of it..

http://msdn.microsoft.com/library/de...omdatabase.asp
"William Ryan" <do********@comcast.nospam.net> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
> You can use a DataReader's GetSchemaTable method
> "suzy" <su**@spam.com> wrote in message
> news:ck***************@news-binary.blueyonder.co.uk...
> > Hello,
> >
> > How can I get table/column schema of a sql server database? i
want to > > convert the entire schema into an xml file.
> >
> > thanks in advance.
> >
> >
>
>



Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I...
0
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no problem: EXEC sp_droplinkedsrvlogin @rmtsrvname...
0
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no problem: EXEC sp_droplinkedsrvlogin @rmtsrvname...
2
by: M Rao | last post by:
I have xml data coming in as a stream from a web service running against exchange server.The attributes for the elements dtstart and dtend, b:dt="dateTime.tz"...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
6
by: Amber | last post by:
do the following steps: 1:Use Manage Studio login the server with Integrated security. 2:Create a dabase named testdb; 3:Create a SQL Server login named amber ,and set it to be dbowner of...
18
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
4
by: dkirkdrei | last post by:
I am having a problem getting results back from a SELECT statement using the script below. The field names contain decimals and I am not sure wether or not this is causing the problem or not?? I am...
8
by: send.me.all.email | last post by:
Hi experts, which approaches would you suggest for: - Reading a database schema (tables, fields, relationships) from SQL Server 2005? - Visualizing the DB schema? For developing a DB tool...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.