Hi Guys,
I'm evaluating Reporting 2011 Q2
Does anybody know if there is a way to pass table-valued parameter to a stored procedure?
When I'm trying to do that I'm getting the following exception thrown:
System.Data.SqlClient.SqlException (0x80131904): The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Table-valued parameter 7 ("@Hours"), row 0, column 0: Data type 0xF3 (user-defined table type) has a non-zero length database name specified. Database name is not allowed with a table-valued parameter, only schema name and type name are valid.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
.. skipped..
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Telerik.Reporting.Processing.Data.SqlDataEnumerable.<GetEnumerator>d__0.MoveNext()
According to comment in MSDN that could be caused by DeriveParameters method agains SqlCommandBuilder.
Indeed, the call exists in the reporting engine source code (SqlCommandProvider, ln.152):
Can you please confirm the bug or suggest a right approach for passing TVP?
Regards, Maxim Tebenev.
Mobile Systems International
I'm evaluating Reporting 2011 Q2
Does anybody know if there is a way to pass table-valued parameter to a stored procedure?
When I'm trying to do that I'm getting the following exception thrown:
System.Data.SqlClient.SqlException (0x80131904): The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Table-valued parameter 7 ("@Hours"), row 0, column 0: Data type 0xF3 (user-defined table type) has a non-zero length database name specified. Database name is not allowed with a table-valued parameter, only schema name and type name are valid.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
.. skipped..
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Telerik.Reporting.Processing.Data.SqlDataEnumerable.<GetEnumerator>d__0.MoveNext()
According to comment in MSDN that could be caused by DeriveParameters method agains SqlCommandBuilder.
Indeed, the call exists in the reporting engine source code (SqlCommandProvider, ln.152):
var arguments = new[] { command };
methodInfo.Invoke(builder, arguments);
Can you please confirm the bug or suggest a right approach for passing TVP?
Regards, Maxim Tebenev.
Mobile Systems International