SQL Server: Should I use SELECT*?

1143015 pts.
Tags:
SQL Server
Particularly in SQL Server, I'm wondering if I should use SELECT*. My friend told me that it's necessarily good practice and it has caused several performance problems for his database. Should I use it? If so, how should I go about it?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    If it's the best choice for the problem at hand, use it. Otherwise, avoid it. In the vast majority of cases, it will not be the best choice.

    It's not unheard of for a DBA to cause SELECT * to fail against their tables. A given SELECT * might have no significant impact, but others can be trouble. When used by multiple users, trouble can be compounded. In production queries, it's almost never that SELECT * IS USED.
    35,130 pointsBadges:
    report
  • ToddN2000
    What is the full task you are trying to accomplish? They question is a little vague. With more knowledge of what you are trying to do we can provide a better answer.
    132,840 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: