cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Command DataSource - Invalid tablename

Former Member
0 Likes
454

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.

Thanks,

DMACK1

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

Hello,

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

Don

Former Member
0 Likes

It is a date/time field. Tried other formulas.

Waiting for IT to provide Native Access.

DMACK1

Former Member
0 Likes

Don,

Well native SQL solved the problem. Like you suggested, Saleslogix's driver modified the SQL statement I provided.

Thanks for your help,

DMACK1

Answers (0)