odbc SQLBindCol $hstmt 5 SQL_C_CHAR office_code 10 pcbValue1
So in all my odbc script is bind to a column using the above code. Up until this point I didnt mind since I controlled the db i was looking at.
However a new project has me looking into a db i dont own, and cant control. I would feel more comfortable if i could bind to a column by its name.
So, for the example above I’d like to replace the 5 with “office_code”. I’ve tried this and it fails.
Is this possible?