Hi, ALL,
I'm trying to implement the solution explained in this.
However trying to call "SQLExecDirect();" on the very first query "IF NOT EXISTS(SELECT..." returns SQL_DATA_AT_EXEC.

I don't understand this return code at all. I'm not asking for any data - I'm changing database parameter in order to proceed.
My DSN is set to connect to the database I'm trying to modify - maybe this is the culprit and I should be connected to "master"?

Or maybe there is an easier way to track schema changes for MS SQL Server?

Can someone please advise?

Thank you.