I'm still in my 30 day test period and having an issue with Quick Report and SQL query.
I am working on converting an Access mdb to MSSQL. I ran the SSMA program to convert the Access tables (only) to MSSQL 2008 Express. I am running A5 with a connection to the SQLEXPRESS server.
I create a new Quick Report, select Ad hoc using named connection string. Then select Custom SQL Select...leaving as Portable... and then clicking on Query Builder.
I then select 3 tables.
I then choose the columns I need from the 3 tables.
I then click on OK and then setup 3 arguments.
Then go back to Query Builder.
Goto Filter tab and add 3 lines for my arguments
I then add 2 to Orders.
I then click on Execute Query and everything works as expected.
SQL query generated:
I click on OK and then Finish and I am prompted for my 3 arguments, then the Quick Report Genie opens up.
I select columns, groups, and then click on Preview.
I then save the report.
I can then double click on the report and view report.
Up until this point, everything is going as planned.
I can go back in and view the Edit Datasource Definition and everything looks OK.
I can go in and change something simple in the report design and the SQL will change. In some cases, it seems to revert back to the very first SQL statement that generated. I haven't quite figured out what triggers this change, but it has happened 3 different times.
Am I doing something wrong, or don't understand A5, or is this a bug?
Thanks,
Doug
I am working on converting an Access mdb to MSSQL. I ran the SSMA program to convert the Access tables (only) to MSSQL 2008 Express. I am running A5 with a connection to the SQLEXPRESS server.
I create a new Quick Report, select Ad hoc using named connection string. Then select Custom SQL Select...leaving as Portable... and then clicking on Query Builder.
I then select 3 tables.
I then choose the columns I need from the 3 tables.
I then click on OK and then setup 3 arguments.
Then go back to Query Builder.
Goto Filter tab and add 3 lines for my arguments
I then add 2 to Orders.
I then click on Execute Query and everything works as expected.
SQL query generated:
Code:
SELECT Project_List.ProjectID, Project_List.LPEJobNumber, Project_List.NewJobNumber, Project_List.V_WBS1, Project_List.ProjectName, Project_List.Closed, Wells.PrintOrder, Wells.Well, Wells.Diameter, Wells.ScreenTop, Wells.TD, Wells.sg, Wells_GwGauging.Date, Wells_GwGauging.DTW, Wells_GwGauging.DTP FROM [Project List] Project_List INNER JOIN (Wells Wells INNER JOIN Wells_GwGauging Wells_GwGauging ON Wells.WellID = Wells_GwGauging.WellID ) ON Project_List.ProjectID = Wells.LPEJobNumber WHERE Project_List.V_WBS1 = :WBS1 AND Wells.PrintOrder < 900 AND Wells_GwGauging.Date BETWEEN :first_date AND :last_date ORDER BY Wells.PrintOrder, Wells_GwGauging.Date
I select columns, groups, and then click on Preview.
I then save the report.
I can then double click on the report and view report.
Up until this point, everything is going as planned.
I can go back in and view the Edit Datasource Definition and everything looks OK.
I can go in and change something simple in the report design and the SQL will change. In some cases, it seems to revert back to the very first SQL statement that generated. I haven't quite figured out what triggers this change, but it has happened 3 different times.
Am I doing something wrong, or don't understand A5, or is this a bug?
Thanks,
Doug
Comment