# Connection failure to database in Azure-sql node

**URL:** https://discourse.nodered.org/t/connection-failure-to-database-in-azure-sql-node/28363
**Category:** General
**Created:** [15 June 2020 15:48 UTC](https://discourse.nodered.org/t/connection-failure-to-database-in-azure-sql-node/28363 "2020-06-15T15:48:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![prateekrastogi](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@prateekrastogi](https://discourse.nodered.org/u/prateekrastogi)
#### Post date: [15 June 2020 15:48 UTC](https://discourse.nodered.org/t/connection-failure-to-database-in-azure-sql-node/28363/1 "2020-06-15T15:48:44Z")

</div>

I am not able to connect to the Azure SQL database in node-red. I am using Azure SQL node but it throws an error : Error: {"message":"Login failed for user 'rbb\_admin@iot-energy'.","code":"ELOGIN"}

Note: I am running node-red on raspberry pi, in case that is of an issue.

I am not sure what seems to be the problem, as I am using the same credentials using MYSQL workbench (windows) to connect to the database and it works.

Any guidance will be of great help.

Thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 August 2020 15:48 UTC](https://discourse.nodered.org/t/connection-failure-to-database-in-azure-sql-node/28363/2 "2020-08-14T15:48:47Z")

</div>

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