Not really a report problem, more of a database version problem I think.
I pull virus dat version from the registry on all computers, then I have this query that returns all computers that are greater than 30 days old.
This query works with an SQL2K5 database:
Select Top 1000000 tblAssets.AssetName,
Convert(datetime,Left(Right(tblRegistry.Value, 12), 8)) As DatDate,
tblAssets.Username,
tblAssets.Lastseen,
tblRegistry.AssetID
From tblRegistry
Inner Join tblAssets On tblRegistry.AssetID = tblAssets.AssetID
Where tblRegistry.Valuename = 'NAVCORP_70' And
DateDiff(dd, Convert(datetime,Left(Right(tblRegistry.Value, 12), 8)),
GetDate()) > 30
When I try to save this report on a new server I am building out it gives me the following error: There was an error parsing the query. [Token line number =1,Token line offset=58,Token in error = Left ]
The only difference between servers is that the new server is running SQL Compact, the server I'm copying reports from is 2K5.