how can I call an store procesure on visual studio? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can I call an store procesure on visual studio?

Let't assume the sql connection is opened already but if I just do and Sql command ("exec sp_name where @id=" '" + a +"') does nothing.

4th Jul 2016, 9:14 PM
Jairo Montesdeoca
2 Answers
+ 1
Use Sqlcommad class, refer msdn for syntax help..
6th Jul 2016, 10:48 AM
Ashutosh Singh
- 1
exec sp_name @id="+a+"
7th Jul 2016, 8:17 AM
Dipankar Banik
Dipankar Banik - avatar