Reputation: 1
how can i create a table dynamically in the database which is already created.i want the table be created when a button is clicked.
thank you
Upvotes: 0
Views: 431
Reputation: 888223
You need to build a CREATE TABLE
statement, making sure to escape all table and field names with [...]
, and use a SqlCommand
to execute it.
Upvotes: 1