[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

SQL Reporting Services and Informix database

Posted on 2006-06-20
6
Medium Priority
?
1,399 Views
Last Modified: 2008-01-09
I created a report in Reporting Services (Sql 2000) that queries an Informix database. The dataset selects data from a view (Command type = text) and passes a parameter.  The query works fine in VStudio designer, but when I publish the report to the report server, it fails.  I believe my connection is fine on the report server because when I define the parameter in the report as a certain value, it works.  It's just when the user enters a value that it bombs out.

Here's the error:

An error has occurred during report processing. (rsProcessingAborted) Get Online Help
Query execution failed for data set 'DataSet1'. (rsErrorExecutingCommand) Get Online Help
IErrorInfo.GetDescription failed with E_NOINTERFACE(0x80004002).

I have noticed that when the user enters a parameter of value 00000189, the report dumps all the zeros and shows only 189.  I don't think this is the problem though because when I enter 189 in designer preview, it works fine too.

Here's my Dataset query:

select * from view where pr_no = ?

Any help you can give is appreciated.

Thanks!
0
Comment
Question by:JoanHerrick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 16947922
Can you try it without the parameter and see if that is causing the error.


i.e.

select * from view where pr_no = 189


or if it's a string

select * from view where pr_no = '189'

0
 

Author Comment

by:JoanHerrick
ID: 16952596
When I do that, it works fine.  That's what makes me think there's something about the parameter that's a problem.
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 16964768
Do you know what datatype the field is? is it varchar or integer?

I don't know much about reporting services but perhaps you need to define the correct datatype for your parameter.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:JoanHerrick
ID: 16973380
Yeah, I've tried using both integer and string and neither one seems to work.  
0
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 2000 total points
ID: 16977589
Are the drivers/driver versions on your development machine and the report machine the same?
0
 

Author Comment

by:JoanHerrick
ID: 17095632
I'm not exactly sure about this because I haven't had time to research it, but I think you're right.  I awarded the points because I didn't want to leave it hanging plus you were the only one who responded to me.  Thanks!
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question