all groups > sql server data mining > december 2003 >
You're in the

sql server data mining

group:

Select Top not working


Select Top not working Shirley Vickers
12/7/2003 2:58:29 PM
sql server data mining: Is there a server setting which affects whether
the 'Select Top n ...' statement can be used? We have SQL
Server Developer Edition 8.00 on two servers - the same
statement works on one server but not the other.

The statement:
select TOP 3 * from generators

Gives an error message:
Server: Msg 170, Level 15, State 1, Line 1
Re: Select Top not working Jacco Schalkwijk
12/8/2003 11:49:41 AM
Check the compatibility level of your database with sp_dbcmptlevel <database
name>. TOP was only introduced in 7.0, so the compatibility level where you
have the problem is probably 60 or 65.

--
Jacco Schalkwijk
SQL Server MVP


[quoted text, click to view]

AddThis Social Bookmark Button