added first and last name to combo box
This commit is contained in:
parent
fb867993e7
commit
e7bb497723
@ -124,7 +124,7 @@ namespace Database2
|
|||||||
cmdString.CommandTimeout = 1500;
|
cmdString.CommandTimeout = 1500;
|
||||||
|
|
||||||
//create and execute SQL statement
|
//create and execute SQL statement
|
||||||
cmdString.CommandText = "SELECT student_id,fname, lname, ' ' + lname as fullname, acct_bal, dob FROM student;"; //query
|
cmdString.CommandText = "SELECT student_id,fname, lname, fname + ' ' + lname as fullname, acct_bal, dob FROM student;"; //query
|
||||||
|
|
||||||
//create data adapter
|
//create data adapter
|
||||||
SqlDataAdapter adapter = new SqlDataAdapter();
|
SqlDataAdapter adapter = new SqlDataAdapter();
|
||||||
|
Loading…
Reference in New Issue
Block a user