Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

Crystal Report - error opening report - database vendor code: 208

Posted on by 1,350

We upgraded to SL2011 FP1 from SL7 FP1.  Now when we print/print preview certain crystal reports they come up with an ERROR message:

Crystal Report Windows Forms Viewer - Failed to retrieve data from the database.  Details:  [Database Vendor Code: 208] ...

Any suggestions?  Thank you, Dave

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Crystal Report - error opening report - database vendor code: 208

    I had a similar error and it took me a while to REALLY read the error message: DATABASE VENDOR CODE: ####.  Hmmmmm ... my database is SQL Server and I have an error number. I went to a page that defined the SQL Server error codes and found my code: Syntax error converting datetime from character string. I went to my stored procedure and I had params that were defined as varchar() but used to compare to a date data type. While that did in fact work if I executed the code in a query window something happens when the resultset is returned to Crystal reports. I simply change the params to datetime and my report worked. What really threw me off was the report would PREVIEW the data but when viewed through the viewer it failed so I spent hours scouring the reports. The sad thing is I made this very same mistake a couple of years ago and forgot the lesson. So the moral is it might not be the report that has the problem. Go to >> www.sql-server-helper.com/.../msg-1-500.aspx - 208 = Invalid object name '%.*ls'. Hmmmm .. not as helpful as mine but there you go.

  • Verified answer
    RedStorm Profile Picture
    RedStorm 1,350 on at
    Re: Crystal Report - error opening report - database vendor code: 208

    All:  1.  I found that when I went to VERIFY DATABASE in this particular crystal report I was getting tables that it didn't like (wanted me to remove the tables and I said No!!).

    2.  That led me to this little trick that I found online that fixed my issue.  Thanks Jeff Trotman and Rick Kerns!! :-)

    wisdomofsolomon.wordpress.com/.../crystal-reports-tables-not-found-during-verify-database

    3.  It shows you how you can use the "Overridden Qualified Table Name" property for the table(s) in the Crystal Report designer to get around the issue.  Alternatively (as mentioned in the link above) you can Update EACH table.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans