[quoted text, click to view] Ricky wrote:
> Hi
>
> Just a quick question, we are thinking of moving to SQL 2005 and I heard
> somewhere that SELECT *, is not supported in SQL 2005, is this true?
>
> Kind Regards
>
> Ricky
That's not true. However, SELECT * should not be used in production
code. To do so is careless and inefficient and it makes your code
unreliable and hard to maintain. The same is true whatever the version
though - there are no special considerations for 2005.
You may be confusing SELECT * with the legacy *= / =* notation. In 2005
that is only supported when the compatibility level is set to 80 or
lower. You should plan to replace the old syntax with the ANSI OUTER
JOIN syntax.
--
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--