Here is what i want to do, I want to query a database that has say 100 records that match my query, but I only want to get the first 5 of those 100 record. Is there a way to accomplish this with an SQL statement?
Currently I am just getting all the records, and then using VBscript to loop through the recordset and pull out the first 5 rows of info that i want, then discarding the recordset. This i imagine is not the most efficient method.
any thoughts?
thanks in advance.
Currently I am just getting all the records, and then using VBscript to loop through the recordset and pull out the first 5 rows of info that i want, then discarding the recordset. This i imagine is not the most efficient method.
any thoughts?
thanks in advance.