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

STUFF Function Expand / Collapse
Author
Message
Posted Tuesday, May 24, 2011 12:42 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: 2 days ago @ 11:18 AM
Points: 985, Visits: 1,829
George Carlin would have had a field day with this thread. After all, STUFF is what life is about.
Post #1114331
Posted Tuesday, May 24, 2011 1:03 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Tuesday, September 30, 2014 6:06 AM
Points: 428, Visits: 991
jeff.mason (5/24/2011)
George Carlin would have had a field day with this thread. After all, STUFF is what life is about.


And because there is never a bad time for George Carlin:

http://www.youtube.com/watch?v=MvgN5gCuLac
Post #1114346
Posted Thursday, June 23, 2011 7:53 PM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Sunday, November 17, 2013 11:53 AM
Points: 623, Visits: 237
trickey
Post #1130903
Posted Thursday, June 23, 2011 7:53 PM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Sunday, November 17, 2013 11:53 AM
Points: 623, Visits: 237
tricky
Post #1130904
Posted Friday, June 24, 2011 7:18 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,228, Visits: 1,046
Tom.Thomson (5/24/2011)
SanDroid (5/24/2011)
Tom.Thomson (5/18/2011)
SanDroid (5/18/2011)
Carlton Leach (5/18/2011)
Another bug vote here, and another wrong answer for me.

NULL is NULL...fullstop. You never know what NULL is so regardless if you insert, concatenate, stick it somewhere in the string: the whole string is (SHOULD BE!) now unknown.

My guess is anyone who got this right either ran the commands first, read the question wrong, of has bumped into this before.

Carlton.


Or has used STUFF for the 11+ years it has worked this way...
http://www.mssqltips.com/tip.asp?tip=1026

I can say the documentation used to be better.

That link doesn't say what STUFF does with a NULL last argument. So how can you say it tells us it worked that way for however many years, when it's the result of a NULL last argument that's at issue in this converstaion?

Been waiting to answer just that question. I will give you the same answer I was given... You should always test any code. Test it a hundred times if you dont know exactly how something works or have not used it before.
I know it sounds harsh, but this is how STUFF is. STUFF has always been this way and STUFF will continue to be this way. STUFF is everywhere, but STUFF does not act the same everywhere. That is just how STUFF and the world works. If you do not understand STUFF, or the documentation for STUFF, you should test your STUFF. Afterwards take a look again at the documentation and STUFF. If you realy learned some STUFF, you should understand STUFF and the differances of other STUFF better. Hopefully you can find the Humor in how STUFF is. Most people that can't laugh at STUFF have a harder life than others.

Unfortunately that tells us that things should be checked by testing. It doesn't tell us why you claimed that the page you referenced said something it quite clearly didn't say. I suggest you read the page again to test whether it actually says what you claimed it said - apply your own "check everything by testing" to your own assertion (which certainly needs testing, as it was completely wrong).

Unfortunately you aparently read at the same comprehension level you right.
If you can't find the answer you want in someone else's question it is not thier fault.
Or in other words. Stuff yourself sill goose!
Post #1131130
« Prev Topic | Next Topic »

Add to briefcase «««34567

Permissions Expand / Collapse