Database Reference
In-Depth Information
8. Now your CommandStoredProcedure form in the Design view should like
Figure 13-12.
Figure 13-12. The Design view of the CommandStoredProcedure form
9. Double-click the Load Currency List button, and it will open the code editior
window, showing the btnLoadCurrency_Click event. Modify the
btnLoadCurrency_Click event to look like Listing 13-5.
Listing 13-5. CommandStoredProcedure.cs
Using System.Data.SqlClient;
private void btnLoadCurrency_Click(object sender, EventArgs e)
{
// Create connection
SqlConnection conn = new SqlConnection(@"server = .\sql2012;
integrated security = true;
 
Search WWH ::




Custom Search