I have successfully created a report referencing a database called database-name.dbo.tablename. However, after I saved it and tried to refresh it, I get a syntax error near '-'. I copied the sql query that crystal generated and ran it in sql query analyzer and got the same error. When I changed it to [database-name].dbo.tablname, it ran fine in query analyzer. But adding the [] in crystal then gave the error that there are no fields in the table ie it did not recognize it as being the table with the [] around it.
How was I able to query the table in crystal before it was saved ie I was printing data from the report fine until after I closed crystal and re-opened. How can I reference a database in crystal that has the - in the name?
How was I able to query the table in crystal before it was saved ie I was printing data from the report fine until after I closed crystal and re-opened. How can I reference a database in crystal that has the - in the name?