T
Thomas Krause
What is the best way to add a new table to a database?
If possible I don't want to use SQL, but ADO.Net directly.
I'm a Ado-Newbie and tried the following:
dataSet.Tables.Add("xyz");
adapter.Update(dataSet);
but this does not work. I believe that Adapter.Update() only works for
Tables that already exist in the Database. But what is the alternative if I
don't like the SQL solution (CREATE TABLE ...)?
I cannot create the tables directly. I have to make that at runtime.
Thanks,
Thomas Krause
If possible I don't want to use SQL, but ADO.Net directly.
I'm a Ado-Newbie and tried the following:
dataSet.Tables.Add("xyz");
adapter.Update(dataSet);
but this does not work. I believe that Adapter.Update() only works for
Tables that already exist in the Database. But what is the alternative if I
don't like the SQL solution (CREATE TABLE ...)?
I cannot create the tables directly. I have to make that at runtime.
Thanks,
Thomas Krause