.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

Parametrized Sql Procedure

Posted By:Ghanashyam Nayak       Posted Date: December 03, 2010    Points: 15    Category:    URL: http://www.dotnetspark.com  

Code for create a parametrized sql procedure...
 


Private Sub MyButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyButton.Click Dim sqlcmd As New SqlCommand() Dim sqlcon As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDbase.mdf;Integrated Security=True;User Instance=True") sqlcmd.Connection = sqlcon sqlcmd.CommandType = CommandType.StoredProcedure sqlcmd.CommandText = "CustomerOrder" End Sub

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend