Hi all, if anyone can help with this one, I will really appreciate it:
I'm using Crystal 10.0 and need to add a sql expression field to my report, the expression is like this:
SELECT "SMSPHdssc4z0"."smsdss"."pract_dim"."pract_rpt_name"
FROM "SMSPHdssc4z0"."smsdss"."pract_dim" A
WHERE "SMSPHdssc4z0"."smsdss"."pms_vst_fct"."prim_pract_no_key"=A."pract_key"
where:
"SMSPHdssc4z0" is the database
"smsdss" is the owner, and
"pract_dim" is a table name as well as "pms_vst_fct"
When I try to save the field expression, I get error:
"Error in compiling expression: Failed to open a row se. Details: ADO error code 0x80040e14. Source: Microsoft OLE DB provider for SQL server. Description: Incorrect syntax near the key-word 'SELECT'. SQL state:42000. Native error 156"
Any ideas?
Thanks
I'm using Crystal 10.0 and need to add a sql expression field to my report, the expression is like this:
SELECT "SMSPHdssc4z0"."smsdss"."pract_dim"."pract_rpt_name"
FROM "SMSPHdssc4z0"."smsdss"."pract_dim" A
WHERE "SMSPHdssc4z0"."smsdss"."pms_vst_fct"."prim_pract_no_key"=A."pract_key"
where:
"SMSPHdssc4z0" is the database
"smsdss" is the owner, and
"pract_dim" is a table name as well as "pms_vst_fct"
When I try to save the field expression, I get error:
"Error in compiling expression: Failed to open a row se. Details: ADO error code 0x80040e14. Source: Microsoft OLE DB provider for SQL server. Description: Incorrect syntax near the key-word 'SELECT'. SQL state:42000. Native error 156"
Any ideas?
Thanks