Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Give Varibale as column name Expand / Collapse
Author
Message
Posted Saturday, November 3, 2012 2:03 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 8:11 AM
Points: 2,926, Visits: 5,408
Jeff Moden (11/3/2012)
... Take the negativity out and you could probably get it down to 6 months or so.


+100


_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)

How to post your question to get the best and quick help
Post #1380740
Posted Sunday, November 4, 2012 11:56 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:59 PM
Points: 37,999, Visits: 34,911
CELKO (11/3/2012)
He's not building a table, Joe. He's trying to build a dynamic cross-tab report.


That is even worse; he does not know how to use a report writer


What really amazes me about this comment is that your book (SQL for Smarties - Advanced SQL Programming - Third Edition) speaks specificially of why you might want to do a crosstab. I quote from Section 23.7 with the title of "Cross Tablulations" on page 538...

However, if you have to use the reporting package on the client side,
the extra time required to transfer data will make these methods on the
server side much faster.


So stop badmouthing the OP on what you, yourself, have justified in writing. At least read your own book before going negative on someone!


--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

Helpful Links:
How to post code problems
How to post performance problems
Post #1380812
Posted Monday, November 5, 2012 6:02 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:59 PM
Points: 37,999, Visits: 34,911
CELKO (11/4/2012)
2) When the SQL is up to the task and efficient, do it in the database. In recent years that has meant more basic aggregation has been put into queries (rollup, cube, et al).


That sometimes requires the naming of columns, Joe. There's no harm in doing so, either. The columns have to be named one way or the other.


--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

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

Add to briefcase ««12

Permissions Expand / Collapse