Submit Data in Database Through The Store Procedure

Hello Guys,
                     You want to enter the data into the database through the Store Procedure.
Using the Text Boxes. 

just go krishan.stranger@gmail.com .

First of all you'll have to make a store procedure and then you would be enter the data into the Database through the single click of a submit button.

sqlconnection con=null;
sqlcommand cmd=null;

private void click_event(object sender, Eventergs e)
con=new sqlconnetion("connetion string");
cmd=new sqlcommand("StoreProcedure name",con);

cmd.commandtext=commandtext.stroreprocedure;
cmd.parameters.add["attributes name"].value=textbox.text;

Comments

Post a Comment

Popular posts from this blog

i am writing With sad hearts some problems with my windows phone samsung omnia w

Delete Duplicate Records in DataBase sql server