01.
sql =
"SELECT user_id, password, first_name,level FROM USER_USE_PRO WHERE user_id ='"
+textBox1.Text+
"' AND password ='"
+textBox2.Text+
"'"
;
02.
03.
sqlcmd =
new
SqlCommand(sql, connection);
04.
sqlcmd.CommandText = sql;
05.
06.
da =
new
SqlDataAdapter(sqlcmd);
07.
da.SelectCommand = sqlcmd;
08.
09.
ds =
new
DataSet();
10.
da.Fill(ds,
"USER_USE"
);
11.
12.
13.
bindingSrc =
new
BindingSource();
14.
bindingSrc.DataSource = ds.Tables[
"USER_USE"
];