Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selection
Message
From
03/09/1999 08:27:51
 
 
To
02/09/1999 22:32:43
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00260982
Message ID:
00261081
Views:
21
There are two solution. You can use the ROWCOUNT connection setting:
SET ROWCOUNT 4
SELECT * FROM table WHERE ...
SET ROWCOUNT 0
But the better solution would be to use the TOP clause of the SELECT command, if you have something to sort on.
SELECT TOP 4 * FROM table WHERE ...
-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform