Here's an example of how to use table-valued parameters in a SQL Server 2008 stored procedure using .NET.
And here's the list of parameter types in CF9.
Q: Is it possible for ColdFusion to pass a table-valued parameter to a Microsoft SQL Server 2008 stored procedure?
Short Answer: No support, it should, vote for it!
Long Answer: Coldfusion can use JDBC, which does not yet support TVP's, but it should. Vote for the feature here: http://mssqlconn.uservoice.com/forums/113295-feature-feedback/suggestions/2269687-table-valued-parameters-tvp-support-in-jdbc
XML will work, but using TVP's makes both the client and sproc code easier to read, write, review, and debug. It is also faster in most cases depending on the API's implementation.
FYI, using Oracle is no better. They have the ARRAY SQL data type (which is closest to TVP). It is also not supported by JDBC: Using Array Objects
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With