SAP Knowledge Base Article - Preview

2133572 - Bit data type in PB and MS SQL - SAP PB


Bit data type in SAP PowerBuilder and Microsoft SQL SERVER 2008 using the SNC driver.
When migrating BIT fields from PowerBuilder 6.5 (SQL 2005) to 12.5 (SQL 2008),  
the result is -1 instead of 1 or 0.  When using convert(tinyint, <column_name>), then it works.
Is that a normal behaviour?



  • SAP PowerBuilder
  • Microsoft SQL Server 2008


SAP PowerBuilder 12.5 ; SAP PowerBuilder 12.6


bit, snc, sql server, sqlserver, mssqlserver, pb, -1 , KBA , BC-SYB-PB , PowerBuilder , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.