mssql question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you limit the number of rows that is fetched at the database,
in MySQL you could use the keyword 'LIMIT', is there something like that for
MSSQL?
 
SELECT * FROM messages ORDER BY (skapad) TOP 15

results in the following errorcode:

Error -2147217900
Incorrect syntax near the keyword 'top'.

Server version : Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
if that is of any importance

- Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top