PC Review


Reply
Thread Tools Rate Thread

constraints from a dataset to a database

 
 
Alex
Guest
Posts: n/a
 
      16th Jun 2004
Hi,

I have a typed dataset that was once create from a database. As time
passed, we'd lost the original database, and had to recreate it.

However, we don't want manually to recreate the constraints also -
they are in the dataset.

Is there a way to automatically bring the constraints from the dataset
into the SQL database ?


Alex.
 
Reply With Quote
 
 
 
 
scorpion53061
Guest
Posts: n/a
 
      16th Jun 2004
Well the primary key is an obvious.

All you really have to do is create the table with the same field names,
data types AND sizes (you can see this in the Adapter code VS generates.

"Alex" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed):
> Hi,
>
> I have a typed dataset that was once create from a database. As time
> passed, we'd lost the original database, and had to recreate it.
>
> However, we don't want manually to recreate the constraints also -
> they are in the dataset.
>
> Is there a way to automatically bring the constraints from the dataset
> into the SQL database ?
>
>
> Alex.


 
Reply With Quote
 
Alex
Guest
Posts: n/a
 
      16th Jun 2004
There is no need to create the tables. The database is there. I want
to bring the constraints from the dataset to the database.

Is there an alternative to doing a reflection-code on the dataset, and
issuing SQL statements that will create the costraints in the
database?

Is there a tool we can buy that can do it ?

Alex.

scorpion53061 <(E-Mail Removed)> wrote in message news:<#(E-Mail Removed)>...
> Well the primary key is an obvious.
>
> All you really have to do is create the table with the same field names,
> data types AND sizes (you can see this in the Adapter code VS generates.
>
> "Alex" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed):
> > Hi,
> >
> > I have a typed dataset that was once create from a database. As time
> > passed, we'd lost the original database, and had to recreate it.
> >
> > However, we don't want manually to recreate the constraints also -
> > they are in the dataset.
> >
> > Is there a way to automatically bring the constraints from the dataset
> > into the SQL database ?
> >
> >
> > Alex.

 
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
Dataset Constraints - again Woody Splawn Microsoft ADO .NET 2 4th Aug 2005 03:00 PM
Dataset constraints Woody Splawn Microsoft ADO .NET 2 29th Jul 2005 04:16 PM
DataSet constraints Glenn Thimmes Microsoft ADO .NET 1 31st May 2005 11:30 AM
DataSet constraints Bert Sachs Microsoft ADO .NET 1 11th May 2004 12:13 PM
Database constraints and dataset constraints Rapi Microsoft ADO .NET 1 24th Dec 2003 12:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 AM.