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 Wayne Sheffield
»
BIT Conversions
35 posts, Page 4 of 4
««
«
1
2
3
4
BIT Conversions
Rate Topic
Display Mode
Topic Options
Author
Message
WayneS
WayneS
Posted Tuesday, August 14, 2012 1:50 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 8:49 AM
Points: 6,367,
Visits: 8,229
buntyteg (8/14/2012)
in correct answer -1,1 is correct
but how 25 is correct
means to say... in bit datatype how we can store 25 (2 digit) value
??????
If it helps, think of it this way:
DECLARE @BitValue BIT;
SET @BitValue = CASE WHEN ValueToConvert = 0 THEN 0 ELSE 1 END;
Wayne
Microsoft Certified Master: SQL Server 2008
If you can't explain to another person how the code that you're copying from the internet works, then
DON'T USE IT
on a production system! After all,
you
will be the one supporting it!
Links:
For better assistance in answering your questions
,
How to ask a question
,
Performance Problems
,
Common date/time routines
,
CROSS-TABS and PIVOT tables Part 1
&
Part 2
,
Using APPLY Part 1
&
Part 2
,
Splitting Delimited Strings
Post #1345005
KWymore
KWymore
Posted Wednesday, August 15, 2012 7:02 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 8:52 AM
Points: 2,574,
Visits: 1,532
Nice question. Made me pause for a moment. Thanks!
Post #1345244
Revenant
Revenant
Posted Wednesday, August 15, 2012 12:57 PM
Hall of Fame
Group: General Forum Members
Last Login: Yesterday @ 10:44 AM
Points: 3,452,
Visits: 2,527
Thanks for an easy one, Wayne!
Post #1345487
Koen Verbeeck
Koen Verbeeck
Posted Wednesday, August 15, 2012 11:21 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 7:39 AM
Points: 9,370,
Visits: 6,467
Great question, thanks.
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 #1345666
manik123
manik123
Posted Tuesday, January 29, 2013 6:32 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:54 AM
Points: 152,
Visits: 154
good questions......
manik123
**********
Manik
You cannot get to the top by sitting on your bottom.
Post #1413000
« Prev Topic
|
Next Topic »
35 posts, Page 4 of 4
««
«
1
2
3
4
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.