Jump to content
  • Advertisement
Sign in to follow this  
chbrules

[ASP] Dealing w/ MSSQL bit datatype

This topic is 4733 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a field in one of the databases I'm working with in the bit datatype. So either the field is a 0 or 1. Now I have to read these values to an ASP page to display. It works fine whenever I read the bit value of 1, but whenever I come across a bit value of 0, I get a MS SQL error:
error '80020009' 
Exception occurred. 

/marketing/product/report.asp, line 129
Line 129 is part of this 'if' statement:
        If rs2("LicenseRequired") <> true then '<---Line 129
		Response.Write "False"
	Else
		Response.Write rs2("LicenseRequired")
	End If
I'm not sure how to go about checking a bit value, any help? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!