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?



How can you execute stored procedure from windows application?..

Answer / 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

More ASP.NET Interview Questions

SessionState - type of sessionstate and when and how to use it

1 Answers   Syntel,


Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one?

1 Answers  


Can you create an app domain ?

1 Answers  


What is session state server?

0 Answers  


Hi, I am working in a small software company in asp.net platform. I need to know how and what are all the task in asp.net will be assigned for the developers in mnc companies. Thanks in advance.

1 Answers  


Which is better asp.net or php?

0 Answers  


What is the use of sessionstate tag in the web.config file?

2 Answers  


• What Session State providers are available in ASP.NET? What are the pros and cons of each?

2 Answers   Infosys,


What is the difference between localization and globalization?

0 Answers  


Differentiate between early binding and late binding.

0 Answers  


Is overloading possible in web services?

3 Answers   Microsoft,


Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

0 Answers  


Categories