05-11-2010 08:50 AM - edited 03-14-2019 05:43 AM
I cannot figure this out.
In the script I'm working on, a boolean variable can be dynamic either True / False ,etc
I cannot get the syntex correct to write this variable to a "binary" datatype column in SQL Server.
Column name in database is Binary
I have tried :
UPDATE da-database
SET Binary=@bStatus
WHERE First=400
da-databaseTEST
SET Binary=&bStatus
WHERE First=400
da-databaseTEST
SET Binary=bStatus
WHERE First=400
But if I use
da-databaseTEST
SET Binary=1
WHERE First=400
It sets the field to true i.e, Works correctly. Just get get it going with a variable.
05-11-2010 02:08 PM
Is this UCCX or UCCE?
05-12-2010 11:24 AM
it is UCCX and
I'm having issues writing to a database doing any variable substitution.
I gave up on the boolean and decided to use just strings but hitting Null.Pointer Exceptions even though (IMHO) things are correct.
Is there a particular varaible type that I should defining in SQL that works "best" with the java beans and IPCC?
05-13-2010 07:01 AM
Hi, can you post the SQL query (the one generating Nullpointers)? G.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide