刚学 这段代码不怎么会添加 尝试几次都不行 来个大佬帮我加下,谢谢
这是源数据库连接字符串:
string str = @"Data Source =192.168.1.168; Initial Catalog = huyang; user id = sa; password = 123;";
SqlConnection conn = new SqlConnection(str);
conn.Open();
string sql = "select * from Cangkuziliao_ ";
SqlDataAdapter sda = new SqlDataAdapter(sql, conn);
要求在下面这个里面绑定:
private DataTable createStudentTable()
{
}