zeewon
zeewon

Reputation: 1

dynamically creating table in sql database

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

Answers (1)

SLaks
SLaks

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

Related Questions