I have a sql server 2005 database that has a table with a column of data type bit. When I look at the data in sql server management studio I see the column value as 0 or 1, when i pull with SAS I see 0 or -1, is like SAS is negating the 1 value. Anyone have an explanation for this? Thanks.
Share
I reckon you must be using
libname oledbto connect to SQL Server from SAS. I’m able to replicate your problem here:-SQL Server code to generate dummy data
SAS code using OLEDB
The print out is:-
SAS code using PROC SQL
It seems like using PROC SQL should fix your problem.
The print out is:-