In response to : Are you using a COMMAND as the data source?
I am not sure how I would use COMMAND as the data source. If that means am I using A SQL Server-Based Stored Procedure then No not at this time. Otherwise I am not sure what you are asking.? Or do you mean am I connecting to the SQL server through an ODBC connection?
Here are the issues we are facing:
We have reports that were written in Crystal Report 8.5 and run on an Informix 7x database using AIX.
The database has been migrated to a Windows 2003 server, running SQL Server 2000 database and we are using the same reports (written in 8.5) with Crystal Report 10x.
The report that I am testing has a main Query (which I connected/"SET" to a new location, new database, same tables names and columns). Then I have some 50 plus subroutines that need to be reset. I open the SQL box of the subquery1, I get a query that does not appear to be joined to anything or even each other.
-- BEFORE reset --------------------------
SELECT
[subquerytable1].[ColumnNa
[subquerytable2].[ColumnNa
[subquerytable3].[ColumnNa
[subquerytable4].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable5].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable1].[ColumnNa
FROM [subquerytable1] subquerytable1,
outer [subquerytable4] [subquerytable4],
outer [subquerytable3] [subquerytable3],
outer [subquerytable5] [subquerytable5],
outer [subquerytable2] [subquerytable2]
WHERE subquerytable1.[ColumnName
-- AFTER Reset --------------------------
SELECT
[subquerytable1].[ColumnNa
[subquerytable2].[ColumnNa
[subquerytable3].[ColumnNa
[subquerytable4].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable5].[ColumnNa
[subquerytable1].[ColumnNa
[subquerytable1].[ColumnNa
FROM (((DatabaseName.[dbo].[sub
INNER JOIN [DatabaseName].[dbo].[subq
ON [subquerytable1].[BCode1]=
INNER JOIN [DatabaseName].[dbo].[subq
ON [subquerytable1].[LCode1]=
INNER JOIN [DatabaseName].[dbo].[subq
ON [subquerytable1].[MCode1]=
INNER JOIN [DatabaseName].[dbo].[subq
ON [subquerytable1].[RCode1]=
WHERE [subquerytable1].[ColumnNa
--------------------------
I am wondering if I have to reset all 50 plus subquery SQL Statements just to make this report run. This is not the only report, and every one of the reports I will need to run has many subqueries.
I am looking for a Global Reset All SubQuery command button.
Somewhere I read that Subreports should not be used anymore, instead Stored Procedures need to be called in to replace the subqueries. I plan to look into some basic Subquery/Stored Proc replaced report soon.
Is this a viable route to take, basically rewriting all the reports and their subqueries?
Thanks for your input.
Main Topics
Browse All Topics





by: mlmccPosted on 2009-11-06 at 15:56:35ID: 25764140
Are you using a COMMAND as the data source?
I don't think there is any easy way to reset the subqueries since Crystak doesn't really recognize that it is there.
mlmcc