473,385 Members | 1,748 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,385 software developers and data experts.

generate XSD of a table in sql server

hi group
plz tell
how to generate XSD of a table in sql server.

thanks
--
Rajesh Tiwari
S/W Engineer
Digital Offshore Solutions(www.dospl.com)
Gurgaon,HR
Nov 11 '05 #1
1 15384
Use a SqlDataAdapter to get to the table and then call FillSchema() to fill
a DataSet with the metadata. Then call WriteXmlSchema() or GetXmlSchema()
to access the data as a schema document. See FillSchema() in the SDK for
more details.

Also note that if you have VS.NET (not sure if all versions have this
functionality) you can use the Server Explorer to drag a table onto the
design surface. An XSD schema will automatically be generated for you which
can then be used for a typed DataSet if needed.

HTH,
Dan Wahlin

Wahlin Consulting
Microsoft MVP - ASP.NET and XML Web Services
http://www.xmlforasp.net

"Rajesh Tiwari" <ra****@nuis.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
hi group
plz tell
how to generate XSD of a table in sql server.

thanks
--
Rajesh Tiwari
S/W Engineer
Digital Offshore Solutions(www.dospl.com)
Gurgaon,HR

Nov 11 '05 #2

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

Similar topics

6
by: Harlan Messinger | last post by:
When a table has multiple layers of column and/or row headings, as we know, there are a couple of options for making the table accessible. Using a *scope* attribute is fine as long as the number of...
1
by: Susan Geller | last post by:
I have a table server control (System.Web.UI.WebControls.Table) on my form that has three columns. Sometimes I need the second column to be invisible, sometimes the third. How can I set a column...
1
by: Mark | last post by:
I have a Table server control with several link buttons. How do I generate the click events for each of these controls? I can't double click on them or go into the properties of the linkbuttons...
0
by: SibAndela | last post by:
From a web client I want to upload a file to the server that I then attach to an email that I generate on the server. Is there a way I can do this without first saving the file on a server folder?...
0
by: Dan | last post by:
We are wanting to use ibuyspy portal as our website. Load content into HTML and change the stylesheet. We see this as very attractive since frequently changed pages can be done in MS word and...
2
by: aric.bills | last post by:
Hello all, I'm a novice Javascript programmer, and I'm having browser compatability issues regarding dynamic generation of tables. The following content generates "hello" in Firefox 1.5, but...
1
by: Starlite | last post by:
hi, does anyone know how to generate table of contents in XML file using perl? Thanks.
0
by: Starlite | last post by:
hi, does anyone know how to generate a table of content in XML file using perl script? Thanks.
2
by: buntyindia | last post by:
Hi, I have to generate a DOM table Run time but how can i generate it's attribute like name and id etc. Please Help, Regards,
2
nirmalsingh
by: nirmalsingh | last post by:
hai all, for example i am having a table: customer(sql server 2005), i want to generate a script for that table (insert) in which customer id > 10, and then i want to delete that table, and then...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.