Sql-server – Classic ADO and Table-Valued Parameters in Stored Procedure

adosql serverstored-proceduresvb6

Is there some way to pass a table-valued parameter to a stored procedure in SQL Server via classic ADO?

Best Answer

Classic ADO is COM and OLE and the SQL Native Client supports Table Valued Parameters over OleDB, see Table-Valued Parameters (OLE DB). One would have to get its hand dirty and code straight to the OleDB interfaces (in C/C++).

Also TVPs are only in SQL 2008, so you won't be able to use them in SQL 2005.

BTW, for completness here is the Table Valued Parameters (ODBC) reference, for the ODBC nostalgics out there...