Codefixer - ASP tutorials, resources and software
ASP.NET 3.5/2.0 Hosting – Click Here
Home   Articles   Resources   ASP directory   ASP Tutorials   Code Snippets   ASP Applications   Forum
Friday 9 May
MembersPro PayPal - ASP Membership software

DiscountASP.NET – ASP.NET 3.5/2.0 Hosting


ASP Partner ASP Partner ASP Partner more partners...

SQL SELECT *

It's a good idea as well as better coding practice to avoid using SELECT * in your SQL statements as it is inefficient. Listing all the fields expressly will improve the retrieval speed.

Why pull all the fields and their data when perhaps you only need 2 or 3 fields. By only selecting the fields we need you reduce the amount of data pulled from the database and thus speed up our web application.

I find sometimes that if I don't name the fields that when I come to write out the recordset that I have to check and check against the database to make sure that I have the correct fields and spelt them properly.

Just one thing, I realise that on some of the tutorials on this site i use SELECT *, shame on me though I must rewrite them once I get the time.

Previous: Server.MapPath
LinksPro - Directory  and Link  Management Software




ASP.NET 3.5/2.0 Web Hosting: 3 Months FREE – Click Here!




About | Contact | Advertise | Feedback | Hire Us | Link

Site developed by Michael Wall - Web Design Belfast N.Ireland.
Copyright © 2000-2008. All rights reserved.

Do you intend to move to ASP.NET or have you already?
Yes will do
Have done
ASP does fine
Not a priority


Directory Software