Skip to Content
author's profile photo Former Member
Former Member

Command DataSource - Invalid tablename

This is my first time using a Command DataSource. I had a need to create a command ds. Working on SQL Server 2005, I needed to have a UNION between two tables along with a join or two on each one of the tables. I was getting the proper information when I was using the MS Management Studio.

In Crystal XI, I did an ADD->Command and inserted my running code. I renamed the datasource from 'command' to 'CalData'. In some formula fields I attempted to use fields from the table as in ( DayOfWeek ({CalData.startdate}).

When I try to run the report I get an error:

Error in compiling SQL Expression :

Failed to retrieve data from the database.

Detail: ADO Error Code: 0x

Source: SalesLogix OLE DB Provider

Description: Invalid table name..

Crystal then takes me back to the formula field which contains "DayOfWeek ({CalData.startdate})", the only statement in that formula.

I hope someone can help me out on this one.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jun 28, 2011 at 02:28 PM


    What happens if you just display the field data? Is it a DATE/TIME type?

    Try using any other CRDate formula to see if that works.

    Try using the MS Native OLE DB provider and not the SalesLogic driver. Could be they are not following the rules.

    Thank you


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.