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 is a SESSION and APPLICATION object?

0 Answers  


difference between Trace and Debug ?

2 Answers   Accenture, HCL, Patni,


Types of state management techniques ?

6 Answers   Digital GlobalSoft,


What are the advantages of asp.net?

0 Answers  


how many character send in one sms forget 160limit and think about gateway allowed

2 Answers   Wipro,


Why does my asp.net file have multiple tag with runat=server?

0 Answers  


What is the use of dispose method?

0 Answers  


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

0 Answers  


What is the difference between Trace and Debug?

2 Answers   BirlaSoft,


How can you use a custom controls in ASP.NET application?

0 Answers   Sans Pareil IT Services,


Which is better asp.net or php?

0 Answers  


How can we identify that the Page is Post Back?

0 Answers  


Categories