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

What is webresource axd?

879


What are cookies in your browser?

993


What are the steps involved to fill a dataset?

1023


what is the difference between response.write() and response.output.write()?

1163


What are the session variables?

982


Why do we need asp.net?

1017


Can asp.net work on an nt server?

1041


When cookie will expire?

993


What is syntax code to send email from an asp.net application?

1016


How can you apply a theme to your asp.net application?

974


How to deploy/publish webservices?How many ways?Plz explain me

2289


What is the purpose of session management?

1005


What is the difference between client-side and server-side validations in ASP.NET?

1176


what cut off mark for po's,what questions they asked for interview?

1864


Can you change a Master Page dynamically at runtime?

964