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, May 26, 2016 10:54 AM
Points: 917, Visits: 2,309
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: Monday, May 23, 2016 6:13 AM
Points: 15,149, Visits: 13,035
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: Tuesday, April 19, 2016 5:42 AM
Points: 2,668, Visits: 374
good one... thanks...
Post #973309
Posted Monday, August 23, 2010 4:36 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 3:48 AM
Points: 1,533, Visits: 2,525
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: Wednesday, April 13, 2016 12:23 AM
Points: 20,643, Visits: 9,671
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: Today @ 1:41 PM
Points: 2,830, Visits: 2,623
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: Wednesday, May 18, 2016 8:42 AM
Points: 3,375, Visits: 1,323
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: Monday, May 23, 2016 6:13 AM
Points: 15,149, Visits: 13,035
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