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...

How can you execute stored procedure from windows application?

Answer Posted / jigneshsanghvi


Stored proc. can be executed using command object by
ExecuteNonQuery method.

Sample Code :
Dim cnn as new sqlconnection
cnn.connectionstring=constr
cnn.open()

Dim cmd as new sqlcommand
cmd.connection=cnn
cmd.commandtext = "ProcName" & parameter list separated by comma
cmd.ExecuteNonQuery()

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the steps needed to be performed in order to create an animation in xaml?

1008


What is the web.config file in asp?

1161


Explain diff. Betn dataset and recordset?

1000


Why would anyone need to implement their own hashtable or linked list?

2973


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

883


Do session use cookies in asp net?

996


What does postback mean?

1006


What is a form tag?

875


Define static member?

987


Can you explain one critical mapping? Performance issue which one is better?

889


What is a server farm in iis?

1033


What are the Types of chaching. How to implement caching

1010


How do you use viewstate?

997


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

2025


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

872