February 17, 2025 at 1:20 pm
Come on @Jeff-Moden. One more post ....
February 17, 2025 at 1:50 pm
I'm not Jeff, but BOO!
February 19, 2025 at 9:00 am
Congratulations @jeff-moden
Finally overtook the high priestess on the SSC overall leaderboard.
February 19, 2025 at 8:43 pm
Congratulations @jeff-moden Finally overtook the high priestess on the SSC overall leaderboard.
She did have a shedload of LIKEs. The "upgrade" on the site years ago hasn't helped much either. I do miss her posts.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2025 at 5:26 am
DesNorton wrote:Congratulations @jeff-moden Finally overtook the high priestess on the SSC overall leaderboard.
She did have a shedload of LIKEs. The "upgrade" on the site years ago hasn't helped much either. I do miss her posts.
Indeed, it would be nice to see her back. She was the reason that I first visited SSC to look for answers.
I had the pleasure of working with her on a large ETL project when SQL 2005 was still in CTP. Very direct and to the point. Always knew where you stood.
February 21, 2025 at 5:17 pm
Nvidia drivers are under the weather, having an expensive video card to see black screens every so often. Not feeling the burn yet
February 21, 2025 at 7:19 pm
Is there any circumstances where you would allow code with a 'SELECT * ' to go into production?
I believe this should NEVER happen. There is a discussion that some are trying to make that if it is in a sub-query it is OK.
This came up because I was doing a code review and I told the person that the 'SELECT *' had to be fixed to list the columns selected.
I just think it's so easy now to get those values to drop in there that using an asterisk is just lazy and poor coding habits.
-------------------------------------------------------------
we travel not to escape life but for life not to escape us
Don't fear failure, fear regret.
February 21, 2025 at 7:39 pm
Is there any circumstances where you would allow code with a 'SELECT * ' to go into production?
I believe this should NEVER happen. There is a discussion that some are trying to make that if it is in a sub-query it is OK.
This came up because I was doing a code review and I told the person that the 'SELECT *' had to be fixed to list the columns selected.
I just think it's so easy now to get those values to drop in there that using an asterisk is just lazy and poor coding habits.
Sure.
It's fine in a WHERE EXISTS clause.
None of the tables in our data warehouse are directly accessible to users. They can only access the tables through views that were created. The underlying tables change regularly. The views created on those tables all use SELECT * FROM table.
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
February 21, 2025 at 8:04 pm
DesNorton wrote:Congratulations @jeff-moden Finally overtook the high priestess on the SSC overall leaderboard.
She did have a shedload of LIKEs. The "upgrade" on the site years ago hasn't helped much either. I do miss her posts.
Yeah, she's missed. She nominated me for MVP back in 2008. She was always fun at events too. Hope she's happy & having fun.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
February 21, 2025 at 8:11 pm
Is there any circumstances where you would allow code with a 'SELECT * ' to go into production?
I believe this should NEVER happen. There is a discussion that some are trying to make that if it is in a sub-query it is OK.
This came up because I was doing a code review and I told the person that the 'SELECT *' had to be fixed to list the columns selected.
I just think it's so easy now to get those values to drop in there that using an asterisk is just lazy and poor coding habits.
I lean heavily towards, no, shouldn't be in production, period. Although, in the grand scheme of things, depending on the circumstances, that may not be the worst thing on its way to production, or already there. SELECT * isn't at the top of my list of worries I guess is what I'm saying. But it's on the list.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
February 21, 2025 at 8:18 pm
Jeff Moden wrote:DesNorton wrote:Congratulations @jeff-moden Finally overtook the high priestess on the SSC overall leaderboard.
She did have a shedload of LIKEs. The "upgrade" on the site years ago hasn't helped much either. I do miss her posts.
Yeah, she's missed. She nominated me for MVP back in 2008. She was always fun at events too. Hope she's happy & having fun.
She certainly is missed. For that matter this whole site is sorely missed. The "upgrade" Jeff mentions unfortunately was what killed this once amazing niche on the internet. I learned so much from this place from some truly inspiring people. It was a shame to see if fall apart from a software project that clearly wasn't tested or thought out well enough. It was exceptionally painful to happen here, a site dedicated to technology.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
February 21, 2025 at 8:39 pm
Is there any circumstances where you would allow code with a 'SELECT * ' to go into production?
I believe this should NEVER happen. There is a discussion that some are trying to make that if it is in a sub-query it is OK.
It's fine in a WHERE EXISTS clause.
None of the tables in our data warehouse are directly accessible to users. They can only access the tables through views that were created. The underlying tables change regularly. The views created on those tables all use SELECT * FROM table.
Bolded is same thing for us. Just be sure to set up something to automatically do "sp_refreshview"s when needed.
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
February 21, 2025 at 9:35 pm
Grant Fritchey wrote:Jeff Moden wrote:DesNorton wrote:Congratulations @jeff-moden Finally overtook the high priestess on the SSC overall leaderboard.
She did have a shedload of LIKEs. The "upgrade" on the site years ago hasn't helped much either. I do miss her posts.
Yeah, she's missed. She nominated me for MVP back in 2008. She was always fun at events too. Hope she's happy & having fun.
She certainly is missed. For that matter this whole site is sorely missed. The "upgrade" Jeff mentions unfortunately was what killed this once amazing niche on the internet. I learned so much from this place from some truly inspiring people. It was a shame to see if fall apart from a software project that clearly wasn't tested or thought out well enough. It was exceptionally painful to happen here, a site dedicated to technology.
Even worse, I've been "promised" many times that "people are working on things". The last promise was "just" a few months ago. We all know how that has worked out. I agree that a super-niche has been basically wiped off the face of the planet. The original change to Word Press years ago chased newbies, neophytes, and alumni away in droves... and continues to do so.
I occasionally loiter at other sites but none, including the current SSC, will ever match the old one.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2025 at 11:00 pm
below86 wrote:Is there any circumstances where you would allow code with a 'SELECT * ' to go into production?
I believe this should NEVER happen. There is a discussion that some are trying to make that if it is in a sub-query it is OK.
This came up because I was doing a code review and I told the person that the 'SELECT *' had to be fixed to list the columns selected.
I just think it's so easy now to get those values to drop in there that using an asterisk is just lazy and poor coding habits.
Sure.
It's fine in a WHERE EXISTS clause.
None of the tables in our data warehouse are directly accessible to users. They can only access the tables through views that were created. The underlying tables change regularly. The views created on those tables all use SELECT * FROM table.
It's actually better in WHERE EXISTS clause.
I personally used "SELECT 1" until I discovered that in this case optimizer goes through column name evaluation process, when in case of SELECT * it's not invoked.
It's not a big difference, and only can be measured on tables with really big number of columns, but still...
_____________
Code for TallyGenerator
February 24, 2025 at 12:15 pm
It depends on the platform and the user base. Some forums see a decline in question quality due to spam, repetitive queries, or lack of research before posting. However, others maintain high standards with active moderation and engaged communities. Encouraging well-structured, insightful questions can improve overall discussion quality. What do you think?
Viewing 15 posts - 66,721 through 66,735 (of 66,816 total)
You must be logged in to reply to this topic. Login to reply