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

Top 5 Contributors of the Month
Melody Anderson

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:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply

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