0

I am developing my very first stored procedure in SQL Server 2012 and need advice concerning the error message I get.

C# code:

my code in C#

Stored procedure code:

my procedure that use in my C# code

Phiter
  • 14,570
  • 14
  • 50
  • 84
rezahack
  • 1
  • 1

1 Answers1

0

In the example you showed, you are not using the stored procedure. The whole Program.sqlcmd.CommandType isn't being used, as you specify a different SQL string (st) to use.

You need to look at examples of how to do stored procedures from c#.

How to execute a stored procedure within C# program

Community
  • 1
  • 1
oppassum
  • 1,746
  • 13
  • 22