# Rasa connection to Microsoft SQL Server

**URL:** <https://forum.rasa.com/t/rasa-connection-to-microsoft-sql-server/53075>\
**Category:** Rasa Open Source\
**Created:** [May 9, 2022, 9:57am UTC](https://forum.rasa.com/t/rasa-connection-to-microsoft-sql-server/53075 "2022-05-09T09:57:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noman579](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman579/32/20509_2.png) [@noman579](https://forum.rasa.com/u/noman579)\
**Post date:** [May 9, 2022, 9:57am UTC](https://forum.rasa.com/t/rasa-connection-to-microsoft-sql-server/53075/1 "2022-05-09T09:57:41Z")

</div>

How can i question Microsoft SQL Server with rasa input question? Like Based on user intent i want to send a query to database then i show that result to user with some text format.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [May 13, 2022, 12:07am UTC](https://forum.rasa.com/t/rasa-connection-to-microsoft-sql-server/53075/2 "2022-05-13T00:07:58Z")

</div>

Yes, with a [custom action](https://rasa.com/docs/rasa/custom-actions/).

The [rasa-demo](https://github.com/RasaHQ/rasa-demo/tree/main/actions) bot has examples of this using the discourse and algolia API’s.

---

<div class="post-metadata">

**Author:** ![noman579](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman579/32/20509_2.png) [@noman579](https://forum.rasa.com/u/noman579)\
**Post date:** [May 14, 2022, 9:35am UTC](https://forum.rasa.com/t/rasa-connection-to-microsoft-sql-server/53075/3 "2022-05-14T09:35:23Z")

</div>

@stephens Thanks I’ve solved this problem.
