mssql question

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?
 
G

Guest

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

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top