B
bijoy
I am in the process of upgrading my application db from Access to SQL
Server.
With the Access backend, I had queries such as "UPDATE table SET
fieldName = True". SQL Server doesnt seem to like TRUE as a bool value,
instead it requires 0 and 1.
My queries are based on user input, so if a checkbox is checked, I
create my query as follows:
"UPDATE table SET fieldName = " + checkbox.selected
which translates to
"UPDATE table SET fieldName = True"
Do I have to rewrite all my queries to conver the "True" to 0/1? Or is
there an easier way?
Bijoy
Server.
With the Access backend, I had queries such as "UPDATE table SET
fieldName = True". SQL Server doesnt seem to like TRUE as a bool value,
instead it requires 0 and 1.
My queries are based on user input, so if a checkbox is checked, I
create my query as follows:
"UPDATE table SET fieldName = " + checkbox.selected
which translates to
"UPDATE table SET fieldName = True"
Do I have to rewrite all my queries to conver the "True" to 0/1? Or is
there an easier way?
Bijoy