Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Crystal report returning Database Vendor code 102 error

(0) ShareShare
ReportReport
Posted on by

A custom crystal report using a view and a table. Getting error

Failed to retrieve data from database.

Details: [Database Vendor Code: 102]

We get this error only on one workstation. If the user logs on to a different workstation they can run the report. Have reloaded client on workstation, rebooted workstation, deleted ODBC connection. Different user logs on (administrator rights) and doesn't work.  Something wrong with workstation.

*This post is locked for comments

  • harshshah Profile Picture
    30 on at
    RE: Crystal report returning Database Vendor code 102 error

    are the sql odbc drivers for both workstation same.  on SL2011 it uses sql 2012 native client odbc.

  • Community Member Profile Picture
    on at
    RE: Crystal report returning Database Vendor code 102 error

    Peter, what version of SL and what version of Crystal Reports are you running?

    You might try one ODBC change to see if it makes any difference.  Configure the ODBC definition for your application database using the SQL administrator credentials.  On the DSN configuration page, look at the Use ANSI option settings.  If they are checked, uncheck them and try the report.  If the are not checked, check them and try the report.  I know that sounds strange but I have found that the ANSI settings affect various reports built under prior versions of Windows talking to different versions of SQL.

    The other common issue with some user developed reports is that they are built with a particular printer type and then the workstation running the report cannot resolve the printer optimization codes in that report.  If you open the report in Crystal and go to the printer setup, check the No Printer option.  This causes the report to be more generic and lets it work with any printer.

    Not sure if either of these will help but they are things I try when I get an error similar to this and one of them usually fixes the issue.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,996 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans