Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql and coldfusion data types

Status
Not open for further replies.

ice7899

Programmer
Joined
May 14, 2006
Messages
59
Location
GB
Hello

I have a column named Activated in a table defined in my .sql as follows

[Activated] [bit] NULL

I am looking to invoke a coldfusion component which updates the table with the following arguement definition

<cfargument name="RActivated" type="numeric" required="yes">

This function is then later called with the following arguement

RActivated = "True"

The Activated column is used to record whether an account has been activated or not

My question is what are the coldfusion types that go with [bit]

Is it right to use type="numeric" or should I use type = "boolean"

Should I set Activated = "True" or activated = "1"

Basically what are the best datatypes to use in a true / false column ?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top