Hi everyone
i wonder if there is a way to create a table in sql2000 database from an asp.net application?
please anyone can help?
Thanks
Create a table in sql from an asp.net app
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

trufun10120 reputationPosted Aug 2, 2005, 6:52 AM EDT
SqlConnection sqlConn = new SqlConnection(strSqlConnection);
string strSql = "CREATE TABLE ... ";
SqlCommand sqlCmd = new SqlCommand(strSql, sqlConn);
sqlCmd.Connection.Open();
sqlCmd.ExecuteNonQuery();
sqlCmd.Connection.Close();
That should work.
Mahesh ChandRank #1 · 393.4K reputationPosted Aug 2, 2005, 6:57 AM EDT