If I am in the data report manager in Visual Basic 6.0, and I am typing SQL commands for a certain procedure to work, what are the commands to list...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer
If I am in the data report manager in Visual Basic 6.0, and I am typing SQL commands for a certain procedure to work, what are the commands to list a person's last name in ascending order and just the top 50 names?
Last updated
Matthew Pomar
Customer Support
Good question. I was faced with the same situation not to long ago. There are a few things you can do. I may be a little incorrect on the sytax, but: set rowcount 10 -use this command before your query in a stored procedure to return only the first 10 records. You obviously can return more or less by changing the number after the command. Top -if you are using SQL 7.0, you can use the Top keyword. Example wourl be: SELECT TOP 10 FROM AUTHORS I hope this helps. Regards, Matthew Pomar m**r@aspsites.com
Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!