Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase ««12

Query-generated Column Expressions Expand / Collapse
Posted Wednesday, May 26, 2010 7:08 AM


Group: General Forum Members
Last Login: Wednesday, January 26, 2011 1:32 PM
Points: 146, Visits: 327

I tweaked it for SQL 2005 - and I was not a fan of <column> as <column> when nothing was done to the data. Plus I don't think the final SQL generated was runnable, but that might have been me.

Really neat concept - patterns are the way to go.

Post #928211
Posted Wednesday, May 26, 2010 4:46 PM



Group: General Forum Members
Last Login: Yesterday @ 5:19 PM
Points: 39,691, Visits: 36,829
Thanks for the feedback guys.

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Favorite Quotes:
"Has anyone ever told you that a query you have written runs too fast?" - Dwain Camps - 6 Mar 2014

Helpful Links:
How to post code problems
How to post performance problems
Post #928668
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse