Subject: Insert data row in SQL SERVER 2000
Posted By: dimeanel Post Date: 1/25/2006 6:32:11 AM
I have SQL procedure made in SQL Sever 2000, this procedure insert data strings into SQL table. I can not write VB.NET code which will take same data strings from text box in windows forms and running SQL procedure put it in new row in SQL server table.


Reply By: planoie Reply Date: 1/25/2006 8:32:19 AM
Usually, you create a SqlCommand object, set the command text to the stored procedure, set the command type to the Procedure enum then create the necessary parameters on the command object to represent the procedures parameters.

Here's the MSDN article on the SqlCommand class:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDataSqlClientSqlCommandClassTopic.asp

-Peter

Go to topic 39150

Return to index page 386
Return to index page 385
Return to index page 384
Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379
Return to index page 378
Return to index page 377