May 17, 2010 at 1:45 pm
How can I create xml schema definitions for the current database table I have in my database?
Thanks.
May 17, 2010 at 2:07 pm
Please have a look at BOL (BooksOnLine, the SQL Server gelp system usually installed together with SQL Server, accessible via F1 from Management Studio). Search for the "CREATE XML SCHEMA COLLECTION".
Is that what you're looking for?
May 17, 2010 at 2:44 pm
I have around 60 tables in the database and need to create .xsd file for all the 60 database tables(create table script and indexes and relationships).
Create table script for all these 60 tables should be in xml. Is there any script or tool to generate other than creating xml script manually for each and individual table.
Thanks.
May 17, 2010 at 4:53 pm
i usually add a blank xsd file to my project, then with server explorer, create a connection to the database.
once that is there, you can drag and drop all 60 (or all 1000...no diff) tables to your xsd file; by default it also creates tableadapters, which i personally remove, but that's the fastest way....
is that what youa re talking about?
Lowell
May 18, 2010 at 8:20 am
In the visual studio I am not able to drag and drop the database objects into the blank xsd file from the server explorer. Any ideas?
Thanks.
May 18, 2010 at 8:26 am
lets just cover all the bases;; you created a connection , correct? then you can expand the conenction to show the tables, multi select and drag and drop:
you VS should look like this:
Lowell
May 18, 2010 at 9:38 am
Hey,
It worked.
Thank you very much.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply