# MS SQL Integration for UE4

**URL:** <https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666>\
**Category:** UE Marketplace\
**Tags:** unreal-engine\
**Created:** [December 10, 2015, 4:00pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666 "2015-12-10T16:00:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [December 10, 2015, 4:00pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/1 "2015-12-10T16:00:19Z")

</div>

**[FONT=Franklin Gothic Medium]Bringing the Power of C#.NET in UE4**

 ![c5d5f1b549be75d2c6cef17fd72b7dcfc7a87c8c.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/d/c5d5f1b549be75d2c6cef17fd72b7dcfc7a87c8c.jpeg)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/7/2e743232952d1d9c1059b1a8900baad45beb1ada.jpeg "MSSQL Integration in Unreal Engine 4") ](https://www.youtube.com/watch?v=QVPYHKTCZH4)

Hi Guys ,

Since my C++ knowledge is restricted to Unreal C++ and not having any basic concepts of core C++ , it has always occurred to me what if I can write gameplay actions in C++ and blueprints , but all non gameplay tasks are carried out by C#. Having expert knowledge and experience in C# , I believe I can do pretty much anything if only I have access to C#. Well , last year I found out that, it is very much possible.

The MS SQL Integration Plugin brings the power of C#.Net in Unreal Engine. With this plugin you can store and retrieve data and images from you SQL Server. Build your own queries and select and update data to your database directly from Blueprints. No restrictions in query formation. Any query working inside SQL Client , works here, which means you can select and update multiple data at once , as well as use joins and sub-queries.

 ![a854a06a8b9a967f264175941e188b1928bc482b.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/5/a854a06a8b9a967f264175941e188b1928bc482b.jpeg)

 ![MSSQLIntegration1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/d/c5d5f1b549be75d2c6cef17fd72b7dcfc7a87c8c.jpeg)

 ![MSSQLIntegration4.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/e/be994e3ce493c3a10e10e4532819280e03ddadeb.png)

 ![MSSQLIntegration5.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/d/1d17ec5b7d25150881ef4f99f653ee644114662a.png)

---

<div class="post-metadata">

**Author:** ![Hyperloop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hyperloop/32/1203427_2.png) [@Hyperloop](https://forums.unrealengine.com/u/Hyperloop)\
**Post date:** [December 10, 2015, 4:04pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/2 "2015-12-10T16:04:42Z")

</div>

Wow, that’s really cool, definitely interested in this

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e0843907](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e0843907](https://forums.unrealengine.com/u/anonymous_user_e0843907)\
**Post date:** [December 10, 2015, 6:28pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/3 "2015-12-10T18:28:49Z")

</div>

Been waiting for something like this for so long. Amazing to see it finally happening. Will be buying this as soon as its released!

Only thing I would ask is that you code it with security in mind. Would be great to make server side logic in blueprints with peace of mind knowing that code will not be compiled into clients and only into dedicated server builds.

---

<div class="post-metadata">

**Author:** ![Sanjshah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanjshah](https://forums.unrealengine.com/u/Sanjshah)\
**Post date:** [December 29, 2015, 9:12am UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/5 "2015-12-29T09:12:43Z")

</div>

Looks very useful, I could use this for other stuff like changing the visibility of objects depending on the returned query and also analytics of the scene usage. I assume at some point when connecting to an external SQL DB some sort of web service will be required?

---

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [December 29, 2015, 5:57pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/6 "2015-12-29T17:57:29Z")

</div>

> [@Sanjshah;444639](#):
>
> Looks very useful, I could use this for other stuff like changing the visibility of objects depending on the returned query and also analytics of the scene usage. I assume at some point when connecting to an external SQL DB some sort of web service will be required?

Web service will not be required. You only need to have a dedicated database server address.

---

<div class="post-metadata">

**Author:** ![Toastx88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Toastx88](https://forums.unrealengine.com/u/Toastx88)\
**Post date:** [January 1, 2016, 5:04pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/7 "2016-01-01T17:04:04Z")

</div>

very excited for this!

---

<div class="post-metadata">

**Author:** ![SaviorNT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaviorNT](https://forums.unrealengine.com/u/SaviorNT)\
**Post date:** [January 1, 2016, 8:36pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/8 "2016-01-01T20:36:32Z")

</div>

How does the network traffic parse when passed through Wireshark or WinPCap? Is there some sort of obfuscation / encryption going on at least?

---

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [January 4, 2016, 3:26pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/9 "2016-01-04T15:26:39Z")

</div>

> [@SaviorNT;446238](#):
>
> How does the network traffic parse when passed through Wireshark or WinPCap? Is there some sort of obfuscation / encryption going on at least?

By default , it will follow the same protocol as followed by normal SQL database server. You obviously don’t have to store passwords in your database but to encrypt other data you have to use SQL Server Encryption within your SQL queries. This system works same as manually logging into the server by yourself and write queries.

---

<div class="post-metadata">

**Author:** ![Avelworldcreator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Avelworldcreator](https://forums.unrealengine.com/u/Avelworldcreator)\
**Post date:** [January 21, 2016, 4:14pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/10 "2016-01-21T16:14:13Z")

</div>

My concern is that it be cross platform compatible. Has this been tested? Secondly our LDAP is non-Microsoft. Will it work with that?

---

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [January 22, 2016, 7:02pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/12 "2016-01-22T19:02:41Z")

</div>

> [@Avelworldcreator;458428](#):
>
> My concern is that it be cross platform compatible. Has this been tested? Secondly our LDAP is non-Microsoft. Will it work with that?

No. This is strictly Windows as of now. For android and all , additional functions need to be written in my C# dll source code and that can be called similarly from C++ and then from Blueprints. Seperate LDAP needs to be implemented separately.Thanks for the suggestion , I am putting this up in my to do list. However initial submission will be based on Windows platform only.

---

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [March 14, 2016, 2:25pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/13 "2016-03-14T14:25:34Z")

</div>

Hi Guys ,

Going to submit this in the marketplace as soon as I finish making a video demonstration. Meanwhile , please let me know what features you want in this plugin that suit your project specific requirements

---

<div class="post-metadata">

**Author:** ![Rhynedahll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rhynedahll](https://forums.unrealengine.com/u/Rhynedahll)\
**Post date:** [March 14, 2016, 10:18pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/14 "2016-03-14T22:18:29Z")

</div>

> [@sameek4;492901](#):
>
> Hi Guys ,
> 
> Going to submit this in the marketplace as soon as I finish making a video demonstration. Meanwhile , please let me know what features you want in this plugin that suit your project specific requirements

This is a direct db connection? It has no intermediary php or etc layer?

Do I understand correctly that you will be able to directly send queries from blueprints to a database to save/load data?

This only works with MS Sql? Not MySql?

My main interest would be storing and retrieving player stats, inventory, location and such. How difficult will it be to manipulate structure values with this?

---

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [March 14, 2016, 10:43pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/15 "2016-03-14T22:43:51Z")

</div>

> [@Rhynedahll;493174](#):
>
> This is a direct db connection? It has no intermediary php or etc layer?
> 
> Do I understand correctly that you will be able to directly send queries from blueprints to a database to save/load data?
> 
> This only works with MS Sql? Not MySql?
> 
> My main interest would be storing and retrieving player stats, inventory, location and such. How difficult will it be to manipulate structure values with this?

Yes , this is a direct DB connection and with Microsoft SQL Server via Blueprints.  
You need to create tables in the DB , and then you need to write query string like select , insert and update as shown in the pictures and once you run the game , the data will be stored in the SQL DB. You obviously need to first establish a connection by calling “Set Connection Properties” method and passing the respective parameters.

---

<div class="post-metadata">

**Author:** ![Rhynedahll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rhynedahll](https://forums.unrealengine.com/u/Rhynedahll)\
**Post date:** [March 14, 2016, 11:03pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/16 "2016-03-14T23:03:25Z")

</div>

> [@sameek4;493188](#):
>
> Yes , this is a direct DB connection and with Microsoft SQL Server via Blueprints.  
> You need to create tables in the DB , and then you need to write query string like select , insert and update as shown in the pictures and once you run the game , the data will be stored in the SQL DB. You obviously need to first establish a connection by calling “Set Connection Properties” method and passing the respective parameters.

Thanks for the reply. This would not be of use for us, due to the prohibitive cost of MS SQL Server.

---

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [March 15, 2016, 2:45pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/17 "2016-03-15T14:45:46Z")

</div>

> [@Rhynedahll;493203](#):
>
> Thanks for the reply. This would not be of use for us, due to the prohibitive cost of MS SQL Server.

Yup , however I plan to create more plugins supporting other databases as well. C#.NET supports it all 😃

---

<div class="post-metadata">

**Author:** ![Rhynedahll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rhynedahll](https://forums.unrealengine.com/u/Rhynedahll)\
**Post date:** [March 15, 2016, 8:36pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/18 "2016-03-15T20:36:17Z")

</div>

> [@sameek4;493582](#):
>
> Yup , however I plan to create more plugins supporting other databases as well. C#.NET supports it all 😃

Well, considering that I would expect the vast majority of the Marketplace’s customers to be indies/hobbiests, I perhaps would have started with one of the free db. Though I am only guessing, my expectation is that you may not sell very many of the MS version.

As far as future versions, my personal preference would be for MySql as many hosting sites have it as a matter of course and it comes prepackaged in Xampp, which makes testing easier.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [March 17, 2016, 9:09pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/19 "2016-03-17T21:09:25Z")

</div>

Now I am curious … I assume you need some C++ code for accessing the DB, right?  
How can you submit C++ code to the UE4 Marketplace, I thought that is not possible at the moment?

---

<div class="post-metadata">

**Author:** ![sameek4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameek4](https://forums.unrealengine.com/u/sameek4)\
**Post date:** [March 18, 2016, 6:53pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/20 "2016-03-18T18:53:05Z")

</div>

> [@haimat;495250](#):
>
> Now I am curious … I assume you need some C++ code for accessing the DB, right?  
> How can you submit C++ code to the UE4 Marketplace, I thought that is not possible at the moment?

Well , there are people who have submitted C++ plugins to the marketplace. They are accepting code plugins , and sooner or later , they are definitely going to put them in the market.

---

<div class="post-metadata">

**Author:** ![teak421](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teak421/32/902996_2.png) [@teak421](https://forums.unrealengine.com/u/teak421)\
**Post date:** [March 18, 2016, 6:57pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/21 "2016-03-18T18:57:36Z")

</div>

Can’t believe I didn’t see this earlier! Awesome!

teak

---

<div class="post-metadata">

**Author:** ![toddkleinhans](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@toddkleinhans](https://forums.unrealengine.com/u/toddkleinhans)\
**Post date:** [March 25, 2016, 11:26pm UTC](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666/22 "2016-03-25T23:26:15Z")

</div>

I work with SQL Server for a living and can’t wait for this to come out. I want to be able to dynamically create/move/re-size objects based on their data values. 3D data visualizations you can see in VR. Also, SQL2016 has a new feature called AlwaysEncrypted which can keep the data encrypted in-flight and at rest. And Azure SQL Database in the cloud can help with the cost issue too.

[Next page](https://forums.unrealengine.com/t/ms-sql-integration-for-ue4/49666.md?page=2)
