The SELECT statement is a const char and “query” has to be a SQLCHAR* I’ve tried reinterpreting the cast but that doesn’t seem to work. The code runs, even with this error, but I would like to get rid of the error. The line:
SQLCHAR* query = "SELECT tblIP.[IPAddress], tblIP.[IPStatus], tblIP.[IPType] FROM tblIP ORDER BY tblIP.[IPAddress] ASC;";
The Error:
IntelliSense: a value of type “const char *” cannot be used to initialize an entity of type “SQLCHAR *”
1 Answer