patrickcbrown
June 6th, 2002, 12:27 PM
Hi Everyone
I am having a bit of trouble trying to dynamically create tables, then have these persisted to a SQL Server database. I can see that the table is created and updated successfully in the dataset, it has all rows marked with a rowstate = Added, but when I call SqlDataAdapter.Update no new table is created. All other tables in the DB that I am using are updated successfully tho.
One note, I am dynamically creating these tables as needed, I have a table class that wraps up this type of table, in it's constructor after adding all columns and setting primary key, I Set up a SqlDataApdapter then SqlCommandBuilder.
This process works well for tables that existed prior to execution, but ...
Thank you for your time and ideas.
Patrick Brown
I am having a bit of trouble trying to dynamically create tables, then have these persisted to a SQL Server database. I can see that the table is created and updated successfully in the dataset, it has all rows marked with a rowstate = Added, but when I call SqlDataAdapter.Update no new table is created. All other tables in the DB that I am using are updated successfully tho.
One note, I am dynamically creating these tables as needed, I have a table class that wraps up this type of table, in it's constructor after adding all columns and setting primary key, I Set up a SqlDataApdapter then SqlCommandBuilder.
This process works well for tables that existed prior to execution, but ...
Thank you for your time and ideas.
Patrick Brown