How to make VB to execute my SQL SP with parameters?
Posted
by fema
on Stack Overflow
See other posts from Stack Overflow
or by fema
Published on 2010-05-23T00:44:48Z
Indexed on
2010/05/23
0:50 UTC
Read the original article
Hit count: 267
Hi,
I have a database in MS SQL Server 2008, I have Stored Procedures. One of them does an INSERT with parameters. It works in Server Management Studio.
Now I'd like to make a button in Visual Basic 2008 that executes this SP. I have made a DataSet, it contains my 3 SP's, I can easily use 2 of them, because they return data, but the one I'm having trouble with doesn't. Could anyone please tell me how to make VB to execute it? (The command should look like this: "EXECUTE SP2 a, b, c, d".)
Thanks in advance
© Stack Overflow or respective owner