Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | XerxesAged Yak Warrior
 
 
                                        666 Posts | 
                                            
                                            |  Posted - 2009-05-26 : 11:09:28 
 |  
                                            | Can't find any info on this, but what are the generic values for T/F in a table? For example, I just imported one and the column bearing the T/F data contains 0's and -1's. Which is which?Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!  |  |  
                                    | Michael Valentine JonesYak DBA Kernel (pronounced Colonel)
 
 
                                    7020 Posts | 
                                        
                                          |  Posted - 2009-05-26 : 12:12:15 
 |  
                                          | If you imported SQL Server bit columns, normally -1 would be true and 0 would be false.When Access displays a SQL Server bit column it displays 1 as minus 1.  I think that is becasue it assumes any integer type with a 1 in the high order bit is negative; since a bit column is only one bit, the 1 becomes -1.CODO ERGO SUM |  
                                          |  |  |  
                                    | XerxesAged Yak Warrior
 
 
                                    666 Posts | 
                                        
                                          |  Posted - 2009-05-26 : 14:58:53 
 |  
                                          | Thanks, Colonel! I realize this seems like a 'rookie' question, but I couldn't find any reliable reference that addressed this.Thanks again!Semper fi,  XERXES, USMC(Ret.)------------------------------------------------------The Marine Corps taught me everything but SQL & VB obviously!   |  
                                          |  |  |  
                                    | SwePesoPatron Saint of Lost Yaks
 
 
                                    30421 Posts | 
                                        
                                          |  Posted - 2009-05-26 : 15:04:40 
 |  
                                          | It also have references to VB and VBA. In VB true is -1 and false is 0.When you use CBOOL function, only 0 evaluates as false, all other values (positive and negative) evaluates as true. E 12°55'05.63"N 56°04'39.26"
 |  
                                          |  |  |  
                                |  |  |  |