我想在sql server数据库中创建sql表到asp.net网页 [英] I want to create sql table in sql server database to asp.net webpage
本文介绍了我想在sql server数据库中创建sql表到asp.net网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在sql server数据库中创建到asp.net网页的sql表.
I want to create sql table in sql server database to asp.net webpage. its possible or not
推荐答案
SqlConnection con = new SqlConnection("server=localhost;user id=sa;pwd=");
con.Open();
string st = "Create Table Query";
SqlCommand cmd = new SqlCommand(st, con);
try
{
cmd.ExecuteNonQuery();
}
catch (SqlException ex)
{
}
con.Close();
这篇关于我想在sql server数据库中创建sql表到asp.net网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文