I recently upgraded from a Win 7 machine to Win 10, upgraded from an older version of AA to the current version and upgraded from an old SQL ODBC driver to a new one. Many changes and thus many variables.
After all of the above I have a few things that no longer work and I am stumped as to why and am looking for someone with a MS SQL server backend to test something.
I have many passive link tables that use a custom query to retrieve data. These will refresh but will not allow you to successfully edit the data source as it will give me various error messages that rang from :"not connected to data source" or "invalid syntax". Once again, I can right click and refresh without issue.
The test:
1. Create a passive table with a simple select statement like below using native syntax for MS SQL server. I just need to group by something and sum a number. This works for me.
select item,
sum(qty_shipped) as total_qty
from sales_table
group by item
2. Modify the passive table above to the below. This does not work in the Edit Data Source but works every where else I test it in AA like the SQL command window and every other place I can run a query. Apparently AA does not like the embedded case statement.
select item,
sum(case when qty_shipped<100 then qty_shipped else 0 end) as total_qty_lt_100,
sum(case when qty_shipped>=100 then qty_shipped else 0 end) as total_qty_ge_100,
from sales_table
group by item
Interestingly enough i found this command a5_passiveLinkTableDefine() and i can create the above but it will not let me edit it. The problem with that is it will not let you run a5_passiveLinkTableDefine() using the same table name as it knows the table already exists so you have to delete the table to make change which means you loose any operation, report, etc that you created using the original table you created.
Thanks in advance.
After all of the above I have a few things that no longer work and I am stumped as to why and am looking for someone with a MS SQL server backend to test something.
I have many passive link tables that use a custom query to retrieve data. These will refresh but will not allow you to successfully edit the data source as it will give me various error messages that rang from :"not connected to data source" or "invalid syntax". Once again, I can right click and refresh without issue.
The test:
1. Create a passive table with a simple select statement like below using native syntax for MS SQL server. I just need to group by something and sum a number. This works for me.
select item,
sum(qty_shipped) as total_qty
from sales_table
group by item
2. Modify the passive table above to the below. This does not work in the Edit Data Source but works every where else I test it in AA like the SQL command window and every other place I can run a query. Apparently AA does not like the embedded case statement.
select item,
sum(case when qty_shipped<100 then qty_shipped else 0 end) as total_qty_lt_100,
sum(case when qty_shipped>=100 then qty_shipped else 0 end) as total_qty_ge_100,
from sales_table
group by item
Interestingly enough i found this command a5_passiveLinkTableDefine() and i can create the above but it will not let me edit it. The problem with that is it will not let you run a5_passiveLinkTableDefine() using the same table name as it knows the table already exists so you have to delete the table to make change which means you loose any operation, report, etc that you created using the original table you created.
Thanks in advance.
Comment