my practice is that i fill use databinded listboxes and using a tablebindingsource and tableadapter. Then to get selective records in listbox i build stored procedure and select required records.
But now i want that the stored procedure must take some parameter from some textbox value.
like i to implement the following query
string query = "SELECT Patient_ID, Patient_Name FROM Patient WHERE ( Patient_Name LIKE '"+ textbox1.Text +"%' )";
how to do it in a stored procedure. cuz what i know is that i can only give a query like this in stored procedure
SELECT Patient_ID, Patient_Name FROM dbo.Patient WHERE ( Patient_Name LIKE 'DAV%' )
And then you make a stored procedure and fill the tableadapter with that stored procedure. like
this.accountsTableAdapter.FillBy_I(this.junaidDataSet.Patient);
My knowledge is limited ti Visual Studio 2008's interface and how to do stuff on it.
F1F1