Groups | Blog | Home
all groups > sql server reporting services > july 2006 >

sql server reporting services : Stupid error, need help


Carl Henthorn
7/5/2006 9:21:01 PM
I am trying to re-create a report I had semi-running earlier. I create a new
project in VS2005, add a data source. all is ok so far. In the query builder,
I add the stored procedure call to run the report
"Exec GetConsumer @agency" with @agency being an Int parameter that is
passed in at report runtime. The query builder wont take it!!! I cannot get
past this and am very stuck!
the error is "There is an error in the query. Implicit conversion from data
type sql_variant to int is not allowed. Use the CONVERT function to run this
query."
This is complete BS since the sproc runs fine in sql 2000 and sql 2005.

What can I do to get around this?
Amarnath
7/5/2006 11:39:01 PM
I hope your sproc takes parameters so just give the name the rest SSRS will
take care of it. ie if you have paramters in your sproc then SSRS get that
parameters and shows it and you can check it when you preview or just click
"!" from data tab.

Amarnath

[quoted text, click to view]
AddThis Social Bookmark Button