Hi,
Please help.
I got one article for the subject i mentioned above from this site but that is not sufficient for me.. I want some articles or tutorial which can give me knowledge how we can use stored procedure in asp.net like updating,deleting,manipulate tables using stored procedure.. Hope u guys r getting what i am asking.. Please share that with me.. i need it..
Thanks
Loading
Suthish NairPosted Apr 1, 2011, 12:31 AM
DataGridView - Insert, Update, Delete and Retrieve records using stored procedure
Mayur GujrathiPosted Apr 1, 2011, 3:19 AM
cmd.connection=con(sqlconnection variable not necessary to be con it must be what you have declared)
Deepthi AravindPosted Apr 1, 2011, 1:56 AM
Please try this code,
SqlCommand cmd=new SqlCommand();
cmd.CommandText="Stored Procedure Name";
cmd.CommandType=CommandType.StoredProcedure;
cmd.Parameters.Add("@Name", SqlDbType.VarChar, 50).Value = "Value passed into this field";//Input Parameter
cmd.Parameters.Add("@Age", SqlDbType.Int).Value ="Value passed into this field"; //Input Parameter
cmd.ExecuteNonQuery();
Regards,
Deepthi
Savita JoshiPosted Apr 1, 2011, 12:01 AM
As i have told in my post i have already read that article and that is not enough.. I guess u have not read my post completely..
Blocked AccountPosted Mar 31, 2011, 11:30 PM
Take the reference of this article.
Using Stored Procedure in ASP.NET