Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Valued parameters to Stored procedure fails #155

Closed
hskarachiwala opened this issue Sep 1, 2014 · 3 comments
Closed

Table Valued parameters to Stored procedure fails #155

hskarachiwala opened this issue Sep 1, 2014 · 3 comments

Comments

@hskarachiwala
Copy link

Upgraded Dapper from 1.26 to 1.34. Am getting this error wherever I pass Table Valued parameters to a stored procedure (using SQL Azure)

The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 7 : Data type 0x62 (sql_variant) has an invalid type for type-specific metadata.

What have I missed out on??

@NickCraver
Copy link
Member

Are you seeing this on the latest Dapper?

@KishorMakwana
Copy link

yes i have user latest Dapper 2.0.123

@dinilthomas
Copy link

Inside the add function of parameter object pass argument DbType.Object
eg:- DynamicParameters parameterObject = new DynamicParameters();
parameterObject.Add("@table", dtTable, DbType.Object);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants