Thomas’ Developer Blog

January 29, 2009

Boolean to Int32 for SQL database. Yes it’s that easy!

Filed under: Uncategorized — sanzon @ 11:11 pm

I came across a thread on the web browsing around for a solution to another problem when I came across a forum thread that seemed to go on forever about converting a boolean, true/false, to an int, 1/0.

I wanted to slap them after seeing how so many people couldn’t find such a simple answer! So here it is incase you need to know how to do it in only 1 line of code!

convert.toint32(Boolean)

I couldn’t believe it when I saw people telling the person to use if statements and use a variable to hold the value. Granted it was a small forum, but still it shocks me how little people know about the convert method in .net.

If you want to see what I’m talking about look here:
http://www.daniweb.com/forums/showthread.php?t=104189&highlight=asp.net+convernt+boolean+to+integer

It makes me sort of wonder if these people do this for a living… I hope not… or else I so need a better job.

Advertisements

18 Comments »

  1. This post will help the internet users for creating new weblog or even a blog from start to end.

    Comment by how to configure best best fastest cable modem for comcast — August 12, 2014 @ 8:32 pm

  2. I am in fact pleased to read this weblog posts which carries plenty of useful information, thanks for providing these kinds of data.

    Comment by how to configure best wireless cable modem for comcast — August 12, 2014 @ 10:17 pm

  3. We stumbled over here by a different web page and thought I might as well check things out.
    I like what I see so now i’m following you. Look forward to checking out your web page again.

    Comment by how to configure adsl adsl modem for bsnl broadband — August 16, 2014 @ 9:49 am

  4. My spouse and I stumbled over here from a different page and thought I should check
    things out. I like what I see so now i am following you. Look forward to
    exploring your web page again.

    Comment by how to configure bsnl adsl modem in bridge mode — August 24, 2014 @ 2:12 am

  5. This article is really a good one it assists new web
    visitors, who are wishing for blogging.

    Comment by how to configure best best docsis 3 cable modem for comcast — August 31, 2014 @ 7:48 am

  6. I am not sure where you’re getting your information, but great topic.
    I needs to spend some time learning more or understanding more.

    Thanks for great info I was looking for this information for my
    mission.

    Comment by how to configure best best dsl how to connect xbox 360 — September 8, 2014 @ 6:32 am

  7. It’s in point of fact a great and useful piece of information. I am satisfied
    that you shared this useful info with us. Please stay us informed like this.
    Thank you for sharing.

    Comment by dgn2200 first american credit union — September 19, 2014 @ 11:04 am

  8. Piece of writing writing is also a fun, if you know then you can write or else it is complicated to write.

    Comment by how to configure beetel adsl modem for bsnl broadband — September 19, 2014 @ 3:47 pm

  9. Good day! This is my first visit to your blog! We are a collection of volunteers and
    starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a outstanding
    job!

    Comment by how to configure best cable best cable modem for cox — September 19, 2014 @ 4:11 pm

  10. Hi I am so grateful I found your blog page, I
    really found you by accident, while I was searching on Yahoo for
    something else, Anyways I am here now and would just like to say many thanks for a fantastic post and a all round exciting blog (I also love the theme/design), I
    don’t have time to look over it all at the minute but
    I have saved it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up
    the superb work.

    Comment by how to configure best comcast dsl best modem for xbox live — September 19, 2014 @ 4:25 pm

  11. You really make it seem so easy along with your presentation but
    I find this topic to be actually one thing which I
    believe I would never understand. It seems too complex and very extensive for me.

    I’m looking ahead in your next submit, I will attempt to
    get the hold of it!

    Comment by how to configure best buy buy cable modem for comcast — September 19, 2014 @ 9:36 pm

  12. Nice blog here! Also your web site loads up fast! What web host are you using?
    Can I get your affiliate link to your host? I wish my site
    loaded up as fast as yours lol

    Comment by how to configure best cable do you do u need a modem — September 20, 2014 @ 10:00 am

  13. I will immediately take hold of your rss as I
    can’t to find your email subscription hyperlink or e-newsletter service.
    Do you have any? Please let me realize in order that I
    may subscribe. Thanks.

    Comment by how to configure best comcast how to configure modem zyxel — September 20, 2014 @ 11:09 am

  14. Excellent pieces. Keep writing such kind of information on your
    site. Im really impressed by your blog.
    Hello there, You’ve performed a fantastic job. I will definitely digg it and in my
    view suggest to my friends. I am sure they’ll be benefited from this website.

    Comment by how to configure best comcast best how to connect xbox 360 — September 23, 2014 @ 3:40 am

  15. I am really enjoying the theme/design of your web site.
    Do you ever run into any browser compatibility problems?
    A small number of my blog visitors have complained about my blog not operating correctly in Explorer but
    looks great in Safari. Do you have any solutions to help fix this issue?

    Comment by how to configure arris best cable modem for comcast — September 25, 2014 @ 9:53 am

  16. Hello everybody, here every one is sharing these knowledge, therefore it’s
    good to read this blog, and I used to go to see this weblog all the time.

    Comment by how to configure best best docsis 3 wireless cable modem for — October 1, 2014 @ 2:53 am

  17. Hey would you mind letting me know which web host you’re working with?
    I’ve loaded your blog in 3 different web browsers and I
    must say this blog loads a lot faster then most.
    Can you recommend a good web hosting provider at a reasonable price?

    Kudos, I appreciate it!

    Comment by rovine catalonia riviera maya cancun — October 1, 2014 @ 4:07 am

  18. Hello to every body, it’s my first pay a quick visit of this webpage; this blog consists of remarkable and in fact excellent information designed for visitors.

    Comment by Seo Berlin — October 9, 2014 @ 2:38 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: