Creating MySQL Table from .NET Dataset Schema

Hi all, 1st post so be gentle, had a search and seem unable to find anything relating to this.

I am currently creating a small program to take 4 tables (currently) from an Access DB where modifications are made and update 2 different Remote Server based MySQL databases. I am using C# and .NET. I also have the MySQL Connector extension from their website.

I have been asked to replicate the actions of an ASP script (too unreliable), in creating a copy table before moving the data into position (if that makes sense! :))

Basically as all the tables are different and there is potential for more to be added later, I want to be able to create the new tables in the MySQL db programmatically using the schema or some other method from the DataSet. (As its basically a copy)

Now can anyone offer some advice on how I would 'convert' the schema into a MySQL/SQL format to create the table? I.e. is there an easy way to do this such that I don't have to create a function to convert and support all datatypes etc?

I'm also a bit new to remote db's, if you can't already tell.

Thanks in Advance
Anno

Edited to add, its .NET 2.0
[1220 byte] By [annodomini2] at [2007-11-20 10:08:17]
# 1 Re: Creating MySQL Table from .NET Dataset Schema
is there an easy way to do this such that I don't have to create a function to convert and support all datatypes etc?

No. The DataSet schema is intended to be potentially nothing like the database at all. DataSets are client side storage of some or all data that is or is not present in the backend database. As such, because they were designed to be disconnected, there is no architecture that generates backend schema from frontend schema. The code that does this the other way round (the wizard that makes a dataset from a database table) is a very involved and intelligent bit of software..

Actually, you can dump the contents of a DataSet to XML. I dont know if you can send this to MySQL and have it generate tables suitable for storage of the data.. I'm not big into MySQL and I dont generally use the XML capabilities of any database.
cjard at 2007-11-10 3:29:55 >
# 2 Re: Creating MySQL Table from .NET Dataset Schema
Ok all I wish to do is programatically create a MySQL table based upon a table found in a MS Access DB file through .NET, is this possible?

If so what would be the best approach to take?
annodomini2 at 2007-11-10 3:30:56 >
# 3 Re: Creating MySQL Table from .NET Dataset Schema
i'm really not sure.. AFAIK, Jat has not abiliteis to describe its own schema via SQL and ADOX must be used. That said, there is a slim chance that MySQL will be able to import (cmd line app?) an access db.. Have you tried that?
cjard at 2007-11-10 3:32:05 >