Jump to content

Is it Possible to Use Microsoft SQL Server Instead of MySQL?


Recommended Posts

Posted (edited)

Normally I do my SQL work and development using Microsoft SQL Server. I recently got into starting development on my own gamemode and was curious if I can connect it to MS SQL Server or does it have to be MySQL?

Thanks in advance!

Edited by TechNo.
Changing title
  • TechNo. changed the title to Is it Possible to Use Microsoft SQL Server Instead of MySQL?
Posted
13 hours ago, GL1TCH1337 said:

You can use whatever you want. Just install proper libraries. MySQL is not mandatory. 

 

11 hours ago, Zekiloni said:

Yes it is.

Thanks for the help! 

Posted (edited)

I attempted to make a connection to my Microsoft SQL Server instance and I'm not having any luck. The RAGE MP Server is blowing up on the System.Data.SqlClient call and saying that it is not supported on this platform. I put the System.Data.SqlClient.dll into the resources -> project -> bin -> debug -> netcoreapp3.1 and it's still not working. It also blows up saying that it's looking for System.Data.SqlClient.resources.dll and when I renamed it to this (or kept one of each in the directory) it still throws the same error for it not being supported on this platform.

spacer.png

Here are my dependencies from Nuget Package Manager:

spacer.png

And here is a snip of my server-files -> dotnet -> resources -> Project -> bin -> Debug -> netcoreapp3.1

spacer.png

Does anyone have any suggestions as to how I can go about fixing this? 

Edited by TechNo.
Posted

Which folder did you take that System.Data.SqlClient.dll from? If you remove it from runtime folder, you're asked to include it again?

Posted
8 hours ago, Xabi said:

Which folder did you take that System.Data.SqlClient.dll from? If you remove it from runtime folder, you're asked to include it again?

I took the System.Data.SqlClient directly from the Path that was in Visual studio. This was:

C:\Users\myUser\.nuget\packages\system.data.sqlclient\4.8.3\ref\netcoreapp2.1\System.Data.SqlClient.dll

spacer.png

This is what the Server Files -> dotnet -> runtime folder looks like and it contains the System.Data.SqlClient.dll.

With it in this runtime path, I receive this error during debugging in Visual Studio which is the same as before: 

spacer.png

And the server console displays this stack trace:

spacer.png

When I remove the SQL dll from this runtime path, I still get the same errors in the two screenshots above. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...