Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Call a stored procedure from ado.net and pass parameter to it ?

Answer Posted / guest

create con as connection object,cmd as command object
cmd.CommandType=CommandType.Storedprocedure
cmd.CommandText="storedprecedurename"
cmd.ExecuteNonQuery()

Is This Answer Correct ?    16 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ado.net connection?

907


What are the major difference between classic ADO and ADO.NET?

939


Explain which name space is used to get assembly details?

906


Command objects uses, purposes and their methods.

928


What is the executescalar method?

1018


How can we load multiple tables in to dataset?

1030


What are the advantages and drawbacks of using ado.net?

1042


What are dataproviders?

902


Which object needs to be closed?

2193


What is serialization and de-serialization in .net?

877


Explain the difference between sqlcommand object and command behavior object?

1007


What is DataRowCollection?

1031


What is dataadapter in ado.net?

873


Define ado.net?

1035


What is shadow copy?

933