Error with CTE (Common Table Expressions)
Posted: Sun 31 Jul 2011 15:12
When I execute the following query I get the assertion error below.
WITH Address(City,Province,Country) AS (
SELECT City,StateProvince,CountryRegion
FROM
SalesLT.Address )
select * from Address
Assertion failure (D:\Projects\Delphi\Dac\SqlServer\Source\OLEDBAccess.pas, line 9743)
Microsoft SQL Server: 10.00.4064
Microsoft OLE DB Provider for SQL Server: 06.01.7601
SDAC Trial Edition
Version 5.10.0.8 for Delphi
WITH Address(City,Province,Country) AS (
SELECT City,StateProvince,CountryRegion
FROM
SalesLT.Address )
select * from Address
Assertion failure (D:\Projects\Delphi\Dac\SqlServer\Source\OLEDBAccess.pas, line 9743)
Microsoft SQL Server: 10.00.4064
Microsoft OLE DB Provider for SQL Server: 06.01.7601
SDAC Trial Edition
Version 5.10.0.8 for Delphi