Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
AlexJ
Contributor II

Error: Connector reply error: SQL##f - SqlState: 01000, ErrorCode: 0, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]

Hi, 

In one Qlik app we call a SQL procedure (to update a table in SQL Server), and for some unknown reason we recently started getting the following error with a limited feedback. Any guidance how I should troubleshoot this? Thanks a lot in advance!

AlexJ_1-1646518682341.png

Labels (3)
3 Replies
SankarReddy
Support

Hi Alex,

SQL State '01000' is related to the connection failure. 

Is it the Qlik ODBC connector package or Native SQL ODBC driver?
If it is a Qlik ODBC connector, please check the connector log files folder path: "C:\ProgramData\Qlik\Custom Data\QvOdbcConnectorPackage\Log"
If it is a native ODBC driver, check the driver debug logs for more details from administrative tools ODBC tracing log.
Have you tested select queries directly? is it working fine?

Thanks,
Sankar.

AlexJ
Contributor II
Author

Thank you for your answer, Sankar! It works without that procedure. I assume ODBC connection is fine if it loads. Noteworthy, the DB user has EXEC right on the procedure as well.

SankarReddy
Support

Hi Alex,

You are correct, there is no problem with the connection. I tried with this script

SQL EXECUTE dbo.InsertInto 'USA' , 39613789 !EXECUTE_NON_SELECT_QUERY;

You also need to edit allow-nonselect-queries setting in the connector config file

  <add key="allow-nonselect-queries" value="true"/>

If it is not working, please feel free to create a support ticket for further investigation.

sut_2-1646654409424.png

 

sut_4-1646656402426.png

 

 

Best Regards,

Sankar.