Error converting data type nvarchar to int

Hi, I have a simply report and would like to pass multiple INT value parameter (Product ID 'int') when I am running the report. When I choose the single value (Product ID), it runs well. But when I choose more than one value, in the report preview, it shows 'Error converting data type nvarchar to int' .

Does anyone have any idea about fixing this 'simple' problem? I think maybe i need to convert the parameter in SP. But I tried 2 days and got nothing.

Realllllly Appreciate It!!

more ▼

asked Sep 12, 2017 at 02:54 PM in Default

avatar image

61 4

How are you passing those values into the query? What's the report engine doing with those to generate a SQL Statement to pass back to SQL Server for execution?

Sep 13, 2017 at 11:24 AM ThomasRushton ♦♦
(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Sep 12, 2017 at 02:54 PM

Seen: 168 times

Last Updated: Sep 13, 2017 at 11:24 AM

Copyright 2018 Redgate Software. Privacy Policy