constraints from a dataset to a database

A

Alex

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.
 
S

scorpion53061

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.
 
A

Alex

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top