1. sivaraj manoharan
  2. PowerBuilder
  3. Thursday, 12 July 2018 11:18 AM UTC

We are using SQL Server 2012 database. we have a bit column in some tables. while retrieving them from database to datawindow bit 1 converts automatically into -1. in datawindow it is a number column. kindly advice on how to resolve the issue.

Accepted Answer
Michael Hartnett Accepted Answer Pending Moderation
  1. Thursday, 12 July 2018 11:55 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Sivaraj,

This question has been asked before and seems to be how the SQL Native Client Interface handles the return value.

Se the following https://community.appeon.com/index.php/qna/q-a/sql-bit-columns-returning-1-instead-of-1-to-the-datawindow

Chris Pollach's suggestion to set the StaticBind DBParm to 0, on the connection string is the normal fix/workaround.

Michael

Comment
There are no comments made yet.
sivaraj manoharan Accepted Answer Pending Moderation
  1. Sunday, 15 July 2018 05:14 AM UTC
  2. PowerBuilder
  3. # 1

Dear Michael, I have added the DBParm StaticBind = 0 before connecting the database . I works fine. Thanks for your support.

Comment
  1. Michael Hartnett
  2. Friday, 20 July 2018 11:26 AM UTC
Very Welcome
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.