How to solve the "failed to open a rowset" error

Written by catlin tidwell
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to solve the "failed to open a rowset" error
Crystal Reports uses the "Failed to Open a Rowset" error whenever an SQL query fails. (laptop with database record on 15.4" wide screen image by .shock from Fotolia.com)

Crystal Reports is a database-driven reporting application included with Microsoft's Visual Studio development software package. "Failed to Open a Rowset" is a common error generated by Crystal Reports upon failure of a report query. The error occurs when the SQL query the report is based on cannot execute properly. The error "Failed to Open a Rowset" is used generically by Crystal Reports to represent any SQL query error.

Skill level:
Easy

Other People Are Reading

Instructions

  1. 1

    Review any changes you have made to the database your report is generated from, such as changes to the database name or tables added to the database. If the database name has changed, change the Location attribute for your report to reflect the database's new name. Adding a table may cause new links to be created automatically. The new links may alter the structure of your tables or database and cause your query to fail.

  2. 2

    Compare the tables included in the report to the tables referenced in your SQL query. If the query or an ad hoc query references a table that is not included in the report, the SQL query will be unable to execute and Crystal Reports will throw the "Failed to Open a Rowset" error.

  3. 3

    Review the stored procedures used by the report you are attempting to generate. The user running the report must have the permissions necessary to execute all stored procedures used to compose the report. Correct the permissions if necessary and attempt to run your report again.

  4. 4

    Check the ODBC properties and settings for your report. Ensure that your are using ANSI nulls and ANSI quoted identifiers. Also make sure that the "Use DSN Default Properties" setting is set to false.

  5. 5

    Open your SQL command line or the query analyzer in Visual Studio or your alternate .NET development program. Attempt to run the query your report is based on directly in SQL. The error thrown by your SQL database may contain more specific information that can lead you to the source of the Crystal Reports error.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.