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 are sql joins?

758


What do you mean by marshalbyref?

845


What does clearing cache?

712


What is the asp.net mvc folder conventions? : asp.net mvc

651


What is manifest in .net framework?

768


How many types of state management are there in asp net?

735


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

769


To bind columns manually which tags do you need to add within the asp:datagrid ?

750


What are the various session state management options provided by asp.net?

744


What do you mean by authentication?

772


What are sql notifications and sql invalidations?

713


What is state management technique?

746


Give an example of cookie abuse.

827


How do you deploy your asp.net application?

771


How does the service stream content?

776