473,385 Members | 1,593 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.

XSD schema to SQL server

What is an easy way to save an XSD schema into SQL server database? I have a
dataset which I have access to both its data and the schema. I read that
from a CSV file. There are more than 50 fields. I would like to find an
easy way to create and modify the tables in the SQL database while having
access the XSD. I can import the XSD in my project files.

I have generated XSDs from existing SQL Server tables into my VB .NET
project in the past through the wizard. Does the wizard work the other way??

Thanks for your help.
--
Software/Database/Network Engineer, MCSE MCDBA
Nov 21 '05 #1
2 1573
Baskin,

Make your Create Datatable SQL statements and execute those with
command.executenonquery

And as I write this forever in my opinion it should be possible to make it
generic. And than I ask when you have done it, please contribute that to
this newsgroup.

I hope this helps something anyway?
Cor

"BaskinT" <Ba*****@discussions.microsoft.com>
What is an easy way to save an XSD schema into SQL server database? I
have a
dataset which I have access to both its data and the schema. I read that
from a CSV file. There are more than 50 fields. I would like to find an
easy way to create and modify the tables in the SQL database while having
access the XSD. I can import the XSD in my project files.

I have generated XSDs from existing SQL Server tables into my VB .NET
project in the past through the wizard. Does the wizard work the other
way??

Thanks for your help.
--
Software/Database/Network Engineer, MCSE MCDBA

Nov 21 '05 #2
Thanks, Cor.

I think I understood what you are suggesting. What I am thinking of doing
is for each column in the data set, build the "CREATE TABLE string" and
execute against the database. Is this correct?

Sorry it took awhile to get back to you due to holidays and such. I will
start coding this and post my solution here as generic as possible.

Thanks again for your reply and suggestion.

Sincerely,

- Baskin Tapkan
Oakdale, MN USA

"Cor Ligthert" wrote:
Baskin,

Make your Create Datatable SQL statements and execute those with
command.executenonquery

And as I write this forever in my opinion it should be possible to make it
generic. And than I ask when you have done it, please contribute that to
this newsgroup.

I hope this helps something anyway?
Cor

"BaskinT" <Ba*****@discussions.microsoft.com>
What is an easy way to save an XSD schema into SQL server database? I
have a
dataset which I have access to both its data and the schema. I read that
from a CSV file. There are more than 50 fields. I would like to find an
easy way to create and modify the tables in the SQL database while having
access the XSD. I can import the XSD in my project files.

I have generated XSDs from existing SQL Server tables into my VB .NET
project in the past through the wizard. Does the wizard work the other
way??

Thanks for your help.
--
Software/Database/Network Engineer, MCSE MCDBA


Nov 21 '05 #3

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

Similar topics

10
by: wackyphill | last post by:
I know in SQL Server the terms Database and Catalog are used interchangably. But a table is also assigned a schema. As seen in the INFORMATION_SCHEMA.Tables View. I don't get what this schema...
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"...
3
by: Kiran | last post by:
Hi, I want to back up my data in some table in SQL server and import it back using Bulk Load of SQL server 2K. I can use the following code to backup the data in XML ...
0
by: Ricky Li | last post by:
I went through some article to see how I can add schema validation for my templated control by adding an XSD file into the VS.NET schema folder. Everything works fine for a schema like this: ...
1
by: serge | last post by:
SQL BPA says the following: "One or more objects are referencing tables/views without specifying a schema! Performance and predictability of the application may be improved by specifying schema...
3
by: athos | last post by:
Hi guys, please help. What I did is : Step1. create a Database named , it's default owner is Step2. create a User in Database named , which maps to the Login on this Database Server, it's a...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
3
by: Chris Lieb | last post by:
I am new to XML Schema and am running into a bit of a snag. I have defined an XML-based scripting language for an updater program that I am working on. I would like to make a schema for this...
3
by: kkao77 | last post by:
I am trying to use schema to validate the data that user sent to my service. How do I achieve that using schema? Do I give schema to the client? or do I write my own schema validation inside web...
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...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.