I can run the query in management studio and it runs fine, but when I try to run it in ssrs 2008, or pass the parameters from an MVC app, no report. I am guessing there is some kind of issue with my report parameter settings but I cant see it.
query:
SELECT p.PersonId, p.FirstName + ' ' + p.LastName as Name, p.FirstName, p.Address, p.City, p.State, p.Zip, l.BodyText, l.CreatedBy
FROM Person p Join Letter l on p.personid = l.personid
where l.PersonId = @PersonId
and l.letterid = @LetterId
Parameter settings: @PersonId & @LetterID are both integers, no default value, internal.
link from the app:
("http://MyServer/ReportServer/Pages/ReportViewer.aspx?/Trespass/Letter&rs:Command=Render&PersonId=" + PersId + "&LetterId=" + LetterId);
When clicked, it renders this url:
http://MyServer/ReportServer/Pages/ReportViewer.aspx?/Trespass/Letter&rs:Command=Render&PersonId=60&LetterId=22
which looks good to me.
Ideas?
null
. Though if they are internal, that explains why they're not working - internal parameters cannot be affected by a URL at all. – Ian Prestonhttp://MyServer/ReportServer/Pages/ReportViewer.aspx?/Trespass/Letter&rs:Command=Render&PersonId=60&LetterId=22
– Anup Agrawal