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

What are resource file and how do we generate resource file?

0 Answers  


Is asp.net different from asp? If yes, explain how?

0 Answers  


What is cross page posting? How is it done?

0 Answers  


About Postback ?

6 Answers   Accenture,


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

0 Answers  


In ViewState How much lifespan items stored?

0 Answers   Siebel,


Describe the .net base class library.

0 Answers  


Suggest 3 best practices in detail for for Developing High Performance Web and Enterprise Applications

2 Answers   Techno Solutions,


Why we are using mvc instead of asp.net? : Asp.Net MVC

0 Answers  


Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

2 Answers   Siebel Systems,


What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?

1 Answers   Siebel,


What are the advantages of asp.net?

0 Answers  


Categories