Hi, I'm hoping someone can tell me why this statement isn't working:
SELECT TOP 1 * FROM [table name]
The error I get is:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '1'.
If I check the syntax, it says it's OK, but when I try to execute it I get the error. Is this a problem with SQL Server 2000? Is there any way around it? Thanks in advance for any help.
Dom
SELECT TOP 1 * FROM [table name]
The error I get is:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '1'.
If I check the syntax, it says it's OK, but when I try to execute it I get the error. Is this a problem with SQL Server 2000? Is there any way around it? Thanks in advance for any help.
Dom