Page 1 of 1

SqlCommand.Prepare method requires all parameters to have an explicitly set type.

Posted: Tue Dec 31, 2019 10:35 pm
by Rezakhosravi
HI
when i use a range Parameter and have this error :
SqlCommand.Prepare method requires all parameters to have an explicitly set type.
1- crate a range Variable:
Image

2- Create 2 new Parameter for Num.From and Num.To like this:
Image

3- use Parameter to Sql Server Query :
Image

4- run and error :
Image

How solve it ?

Re: SqlCommand.Prepare method requires all parameters to have an explicitly set type.

Posted: Thu Jan 02, 2020 6:43 am
by Andrew
Hello,

Please send us a sample that reproduces the issue to support@stimulsoft.com. We will check everything and give you proper advice.

Thank you.