I am doing a c++ project and my database is SQL server.
Some columns of a table contains null values ,spaces and other values. I am using ODBC to get the table values.
My intention is to write these values to a text file. But I failed to read the null and spaces from the table. Because of these 'null's, I cannot properly write to the text file. In my c++ program how can I check whether a variable(bind column) contains null or space.