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

DATALENGTH Expand / Collapse
Author
Message
Posted Saturday, August 21, 2010 1:34 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: Thursday, February 4, 2016 4:45 AM
Points: 909, Visits: 2,263
Comments posted to this topic are about the item DATALENGTH
Post #972995
Posted Saturday, August 21, 2010 1:45 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Sunday, January 4, 2015 7:55 AM
Points: 5,333, Visits: 25,280
Nice to be reminded of the basics - hence a good question

If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Post #972996
Posted Monday, August 23, 2010 12:27 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Friday, February 5, 2016 2:07 PM
Points: 15,016, Visits: 12,988
It is a good question about the basics, but not a very original one. I believe this sort of question has already been asked multiple times.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #973216
Posted Monday, August 23, 2010 4:09 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Thursday, October 29, 2015 12:23 AM
Points: 2,573, Visits: 373
good one... thanks...
Post #973309
Posted Monday, August 23, 2010 4:36 AM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Yesterday @ 7:37 AM
Points: 1,478, Visits: 2,445
I would have had to give it a little more consideration if the options had included 1,3 and 3,1.
Post #973325
Posted Monday, August 23, 2010 4:47 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 12:12 PM
Points: 20,641, Visits: 9,669
da-zero (8/23/2010)
It is a good question about the basics, but not a very original one. I believe this sort of question has already been asked multiple times.


I'd say at least 10 times, and then some for a couple more gotchas. I don't mind anual review but monthly and more seems like a bit too much ofr my taste.
Post #973333
Posted Monday, August 23, 2010 7:02 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, January 19, 2016 12:17 PM
Points: 2,829, Visits: 2,610
This question proves that what I am learning on QoTD is actually sticking. Thanks.
Post #973409
Posted Monday, August 23, 2010 9:30 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 2:59 PM
Points: 3,374, Visits: 1,319
Interesting that this does not work the same way.

select datalength(convert(varchar, getdate(), 101))



Post #973546
Posted Monday, August 23, 2010 9:56 AM
SSC-Addicted

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

Group: General Forum Members
Last Login: Tuesday, December 7, 2010 8:13 AM
Points: 436, Visits: 322
At first I thought 3,1, but since that was not an option I came to my senses and realized that varchar does not adjust if the string is too big.
Post #973569
Posted Monday, August 23, 2010 10:48 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Friday, February 5, 2016 2:07 PM
Points: 15,016, Visits: 12,988
kevin.l.williams (8/23/2010)
Interesting that this does not work the same way.

select datalength(convert(varchar, getdate(), 101))


See http://msdn.microsoft.com/en-us/library/aa258242(v=SQL.80).aspx.

When n is not specified with the CAST function, the default length is 30.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #973620
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse