# Logging data in to SQL

**URL:** https://discourse.nodered.org/t/logging-data-in-to-sql/83942
**Category:** General
**Created:** [22 December 2023 04:35 UTC](https://discourse.nodered.org/t/logging-data-in-to-sql/83942 "2023-12-22T04:35:43Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [22 December 2023 07:04 UTC](https://discourse.nodered.org/t/logging-data-in-to-sql/83942/2 "2023-12-22T07:04:24Z")

</div>

Hi, first get rid of that 7y old problematic node and install mssql-plus (see: [Mssql not sending data to database using mustache format - #4 by Steve-Mcl](https://discourse.nodered.org/t/mssql-not-sending-data-to-database-using-mustache-format/83527/4))

Then, stop using dynamic queries (to avoid SQL injection hacks) and use parameters. Here is an example of how with mssql-plus: [Mssql not sending data to database using mustache format - #2 by Steve-Mcl](https://discourse.nodered.org/t/mssql-not-sending-data-to-database-using-mustache-format/83527/2)

---

_[View the full topic](https://discourse.nodered.org/t/logging-data-in-to-sql/83942)._
