PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

Creating a database directly from the dataset

 
 
Pradeep Masare
Guest
Posts: n/a
 
      21st Jul 2003
Hi,

Can we create a database directly from a dataset...?

Let's say in my C# program i have a dataset:

1)I have a dataset say
DataSet ds = new DataSet();

2) I add datatables,dataRelations to tables in the
dataset.

3) Add some datarows to the datatables

4)Now can I create a Database out of this dataset ????

[I don't want to create the database (from the asp.net
program) using sql scripts.The dataset needs to be
generated directly from dataset (or the .xsd)]
===========================================================
Alternatively:
When you create a typed dataset using the data controls in
VS.net a .xsd file gets created.
This .xsd file contains the entire schema for database
Now is there a way out to use this .xsd file to create a
database directly???
 
Reply With Quote
 
 
 
 
Kathleen Dollard
Guest
Posts: n/a
 
      30th Jul 2003
Pradeep,

Not directly. You'll have to use the DataSet's information to build SQL that
will update your database.

--
Kathleen (MVP-VB)



"Pradeep Masare" <(E-Mail Removed)> wrote in message
news:055e01c34f5d$2ea5da80$(E-Mail Removed)...
> Hi,
>
> Can we create a database directly from a dataset...?
>
> Let's say in my C# program i have a dataset:
>
> 1)I have a dataset say
> DataSet ds = new DataSet();
>
> 2) I add datatables,dataRelations to tables in the
> dataset.
>
> 3) Add some datarows to the datatables
>
> 4)Now can I create a Database out of this dataset ????
>
> [I don't want to create the database (from the asp.net
> program) using sql scripts.The dataset needs to be
> generated directly from dataset (or the .xsd)]
> ===========================================================
> Alternatively:
> When you create a typed dataset using the data controls in
> VS.net a .xsd file gets created.
> This .xsd file contains the entire schema for database
> Now is there a way out to use this .xsd file to create a
> database directly???



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
import CSV file directly into a dataset darrel Microsoft ASP .NET 6 8th Mar 2006 08:34 PM
How can I read an XML string directly into a dataset without creating a file? Don Microsoft VB .NET 2 8th Feb 2006 07:00 AM
Dynamic creating Database from a Dataset Michael Evans Microsoft ADO .NET 1 26th May 2004 03:25 PM
get image data from dataset (insead of directly from db) MattB Microsoft ASP .NET 2 4th May 2004 09:55 PM
Creating an SQL2000 database using an in memory Dataset Paul Cleghorn Microsoft ADO .NET 2 10th Dec 2003 12:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 PM.