DB Insert - error message

Hello,

I’m am trying to write to a table in SQL Server Management Studio. I have set up the Microsoft SQL Server Connector, which seems to be working ok and I’ve set up my table ready to receive the data. However, I’m getting this error when I run the DB Insert:
Execute failed: Error while adding rows #-1000 - #0, reason: I/O Error: Connection reset

I’m also getting this error when I do anything (i.e. running nodes upstream):
Node configuration was aborted after 3 seconds. To change the timeout parameter ‘Retrieve in configure timeout’ go to the ‘Advanced’ tab of the database connector node.

I’ve changed the configuration but this doesn’t appear to make any difference. In fact everything seems to be running slower than usual.

Can someone help me interpret the DB Insert error message or point me in the right direction.

Thanks,

Kate

Hi there @kate-rudd,

welcome to KNIME Community!

have you ever managed to read data from your database or write some data to it? To my knowledge (and with help from google) error means that something in the back-end (Microsoft SQL Server) decided to stop working due to unavailability of resources so don’t think changing timeout parameter should impact this.

What KNIME version are you using and which driver to connect to database?

Br,
Ivan

1 Like

Hi Ivan,

Thank you for getting in touch. I’m using version 4.1.0 and the Microsoft SQL Server Connector. Here is a simplified version of my workbook I’m using for testing:

image

Thanks,

Kate

Hi Kate,

ok. So the DB Reader is working. Can you try adding one more Connector node to your workflow which connects only to DB Insert node?

Also which driver are you using? Built-in jTDS or you added official Microsoft SQL Server driver into KNIME?

Br,
Ivan

Hi Ivan,

I’ve added a connector node which just connects to the DB insert node and am getting the same error message:

I’m using the built-in jTDS.

Thanks,

Kate

Hi Kate,

hmmm. Just to confirm can you select database table with DB Table Selector node in which you want to write your data into? If so you can try to select the “Disable DB Data output port” option in DB Insert node dialog which prevents execution of the metadata query which might cause problems for sme databases.

Br,
Ivan

Hi Ivan,

I can select a database table with the DB Table Selector, although I’ve had problems pulling the meta data through with the DB insert node. I have been writing the Schema and Table details in.

I’ve just started from scratch again and I now can’t configure the DB insert node, this error is appearing:

image

Thanks for your help so far.

Kate

Hi Kate,

I assume you haven’t connected KNIME data table to upper port od DB Insert node. At least I get that message when I do that.

Br,
Ivan

Hi Ivan,

Sorry for the delay in response.

Thank you so much for taking the time to support me with this, I’m the only one in my company who uses KNIME and it makes a difference knowing I’ve got somewhere to turn to when I get stuck.

Whilst I was offsite yesterday I was able to do some further research and I’ve figured out the problem. My SQL database is an Azure SQL database. I’m sorry I didn’t mention this, I thought the Azure SQL database was basically the same as a regular SQL Server. I didn’t realise that it required a slightly different set up. Anyway, I followed the instructions linked below and have got it working:

Thanks again for your help - I really appreciate it.

Kind regards,

Kate

2 Likes

Hi @kate-rudd,

ok. That makes sense. Glad you made it work.

If any questions/problems feel free to reach out to community :wink:

Br,
Ivan

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.