I was trying to create a query loop, which does interactive steps from one instance to the next. After fetching the right data.
Connected python to SQL server and returned table schema column name and type in a variable.
Here I am trying to create hashbyte
for every record in the database save a column name as hk
I am getting error:
ProgrammingError: ('42S22', "[42S22] [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name ''COL_NAMES''. (207) (SQLExecDirectW)")
My desired output will be column name as hk
should be saved in the database and has a unique code for all the row as