SSRS report compiles in visual studio, but throws error in ssrs An error has occurred during report processing. (rsProcessingAborted)

An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'UTIL'. (rsErrorExecutingCommand)
Must declare the scalar variable "@INPUT_StatementDocNo".
Ssrs throws that error. This report works in visual studio.  Compiles and everyone.  I don't get why I can't run it in ssrs.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ValentinoVBI ConsultantCommented:
Please share some more details.  Are you using report parameters?  Stored procedure with parameter?  Is @INPUT_StatementDocNo a report parameter?
In your report the parameter "@INPUT_StatementDocNo" is not matching the same type as what is in your SP.
UnderSevenAuthor Commented:
I was using a stored procedure with parameters, it turns out the problem was the connection type.  I was using a simple sql server connection when building the report but the shared connection on the ssrs database was an ole db.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
UnderSevenAuthor Commented:
Well I figured it out myself, I still don't know why.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.