In a pdf report application using MS SQL Server 2008, I want to create a subslect query including a row number field, like this:
SELECT
row_number() OVER (ORDER BY id) record_number,
id,
name,
phone,
address
FROM
customer
where
id={id_customer}
I’m getting the error that is shown below when saving the app, and of course the field record_number is not created.
mssql_query(): Query failed | Script: /var/www/html/scriptcase8/prod/third/adodb/drivers/adodb-mssql.inc.php linha: 845
Is there any other way to do this?