Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by Anil Dosapati
»
DATALENGTH
17 posts, Page 1 of 2
1
2
»»
DATALENGTH
Rate Topic
Display Mode
Topic Options
Author
Message
ssismaddy
ssismaddy
Posted Saturday, August 21, 2010 1:34 PM
Right there with Babe
Group: General Forum Members
Last Login: Today @ 12:09 PM
Points: 753,
Visits: 1,986
Comments posted to this topic are about the item
DATALENGTH
Post #972995
bitbucket-25253
bitbucket-25253
Posted Saturday, August 21, 2010 1:45 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 1:49 PM
Points: 5,122,
Visits: 20,362
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
Koen Verbeeck
Koen Verbeeck
Posted Monday, August 23, 2010 12:27 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 6:30 AM
Points: 9,410,
Visits: 6,495
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
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #973216
ziangij
ziangij
Posted Monday, August 23, 2010 4:09 AM
SSCommitted
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:53 AM
Points: 1,551,
Visits: 359
good one... thanks...
Post #973309
Andrew Watson-478275
Andrew Watson-478275
Posted Monday, August 23, 2010 4:36 AM
SSC Eights!
Group: General Forum Members
Last Login: Monday, June 03, 2013 6:20 AM
Points: 954,
Visits: 1,878
I would have had to give it a little more consideration if the options had included 1,3 and 3,1.
Post #973325
Ninja's_RGR'us
Ninja's_RGR'us
Posted Monday, August 23, 2010 4:47 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 12:56 PM
Points: 21,376,
Visits: 9,583
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
Daniel Bowlin
Daniel Bowlin
Posted Monday, August 23, 2010 7:02 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 8:36 AM
Points: 2,681,
Visits: 2,423
This question proves that what I am learning on QoTD is actually sticking. Thanks.
Post #973409
kevin.l.williams
kevin.l.williams
Posted Monday, August 23, 2010 9:30 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 7:59 AM
Points: 2,808,
Visits: 1,129
Interesting that this does not work the same way.
select datalength(convert(varchar, getdate(), 101))
Post #973546
JF1081
JF1081
Posted Monday, August 23, 2010 9:56 AM
SSC-Addicted
Group: General Forum Members
Last Login: Tuesday, December 07, 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
Koen Verbeeck
Koen Verbeeck
Posted Monday, August 23, 2010 10:48 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 6:30 AM
Points: 9,410,
Visits: 6,495
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
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #973620
« Prev Topic
|
Next Topic »
17 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.