1

I have a 3D string array in C# and I need to send it to a SQL server stored procedure as a parameter so that the procedure performs a select query using WHERE condition from each array row (3 conditions)

MA9H
  • 1,849
  • 2
  • 16
  • 19

1 Answers1

1

You can add a table parameter to the stored procedure and pass the input data as a DataTable.

This article can be a starting pont for sql 2008.

Stefano Altieri
  • 4,550
  • 1
  • 24
  • 41
  • thanks a lot, but I have one more question.. the procedure is working just fine in sql server, but I can't catch the returned table in c#, any ideas?? – MA9H Apr 16 '13 at 16:17
  • never mind, I've just figured it out!! :) "http://stackoverflow.com/questions/12386188/return-value-from-stored-procedure-to-c-sharp" – MA9H Apr 16 '13 at 17:49