How can get data from multiple table in data table
My
Method
DataTable dt = new DataTable();
dt = RetriveData.executequery("SELectTestmemberbuid",new Parameter ("@MemberID", int.Parse((comboBox1.SelectedValue.ToString()))));
textBox1.Text = dt.Rows[0]["ID_user"].ToString();
This method support 1 result from one table
17 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
I made the appropriate adjustment to the names but the following errors appeared
Msg 207, Level 16, State 1, Procedure Select_USerByID, Line 15
Invalid column name 'IDUser'. Msg 207, Level 16, State 1, Procedure Select_USerByID, Line 16 Invalid column name 'IDUser'. Msg 209, Level 16, State 1, Procedure Select_USerByID, Line 11 Ambiguous column name 'IDUnity_party'. Msg 209, Level 16, State 1, Procedure Select_USerByID, Line 11
Jignesh KumarPosted Aug 16, 2018, 10:41 AM