Welcome to Techinforoad.com - my website where I will publish various articles, tutorials and how-tos on Microsoft Business Solutions Dynamics NAV, SQL Server, virtualization technology and more.
HomeProgrammingADO.NET CREATE/DROP stored procedure on SQL Server from VB.NET application
This application creates a stored procedure on a SQL Server and drops it. Result is written to a textbox.
1) Create a form 2) Add 2 button and 1 TextBox controls to the form 3) Set the following properties for the textbox [Name=txtResult, Multiline = true] 4) Set the first button properties [Name=txtCreate, Text=”CREATE PROCEDURE”] 5) Set the second button properties [Name=txtDrop, Text=”DROP PROCEDURE”] 6) Double click the button btnCreate and add the following code: