?
Solved

Hetorgeneous error when trying to add view to new report

Posted on 2004-09-29
5
Medium Priority
?
251 Views
Last Modified: 2012-05-05
I'm trying to write a new Crystal report that involves a SQL view for the data source. Reports created prevously are ADO (for what that's worth). When I go thru Report Expert and try and select the database view I'm getting a


Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query.

I can add a table, but not any of the views. But there are previously written reports that use other views.

(Sorry, I'm forced to teach myself much of this stuff, so I'm pretty clueless ;-) )
0
Comment
Question by:th1434
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 12185731
What database?  What version of Crystal?

mlmcc
0
 
LVL 13

Accepted Solution

by:
vidru earned 1000 total points
ID: 12186237
Pretty sure this is a SQL Server issue.  Found this thread with a potential solution:
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20331456.html

It points to re-creating the view, setting ANSI_NULLS and ANSI_WARNINGS before the CREATE VIEW statement.

-dave
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 12186898
If it is a SQL Server issue, you might see if those can be set as the default.  I don't recall having to set them for any view or stored procedure I built for use in Crystal.

mlmcc
0
 

Author Comment

by:th1434
ID: 12435029
Sorry to have flaked out on this -- I was given other projects and didn't even have a chance to even think about the responses.

(I did talk to the programmer (created the database and original Crystal reports) last week and the solution was to use ADO connection -- he's sending me a quick run down later).

th1434
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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. …
Loops Section Overview
Suggested Courses
Course of the Month16 days, 14 hours left to enroll

862 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