Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mawak93 · Dec 26, 2014 at 05:09 PM · databaseconnectiononlinesqlsqldatabase

How to integrate SQL database in game?

So i will study a course named Database Management System (DBMS) next semester and i MUST use SQL in my project for the course.....So is there a software or plugin which writes SQL and integrates it into Unity.....I simply want SQL code in my game in short.....So any suggestions ?

It should have SQL writing capability and integrating it with Unity......any help would be greatly appreciated :)

Thank You.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Landern · Dec 26, 2014 at 05:13 PM

If you want it "integrated" in your game, use something like SQLite, click for more details.

If you want to do something online, chances are you don't want the direct layer to your database in Unity, but you want some api. Generally using a type of restful(ish) service with bunch of URI endpoints front end that can be called with WWW class would generally work. Security of course depends on the implementation.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mawak93 · Dec 26, 2014 at 08:13 PM 0
Share

Thanks but SQLite uses javascript ....from your link i see that....but i want to use SQL language in my game for the data base.....not a javascript language....so any other recommendations where i can show my $$anonymous$$cher that hey here i have used SQL in my game.....$$anonymous$$y aim simply is to use SQL in my game

avatar image Landern · Dec 26, 2014 at 08:17 PM 0
Share

Thanks but SQLite uses javascript ....from your link i see that....but i want to use SQL language in my game for the data base.....not a javascript language.

SQLite does NOT use javascript/unityscript, you saw an implementation of the data access layer in unityscript, the calls were to SQLite. The code is portable to c# with ease.

so any other recommendations where i can show my $$anonymous$$cher that hey here i have used SQL in my game.....$$anonymous$$y aim simply is to use SQL in my game

What does this mean, SQL is just a querying language. If you want to use databases and tables that conform to SQL, then unity does not have an API for that. You WILL have to implement it yourself. If the same is to use SQL, does that mean you want a data access layer making connections to a $$anonymous$$SSQL/$$anonymous$$YSQL endpoint and you want to use SQLConnection classes to interact with it, perhaps exec sprocs?

If you LITERALLY mean you want "$$anonymous$$y aim simply is to use SQL in my game".... i'm sorry you're going to have to qualify that statement.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

SqlConnection Error con.Open() 0 Answers

Sql Server Compact 4.0 error 2 Answers

Can't connect from Unity 3.1 to SQL Server Express 8 Answers

Any good tutorials for using databases with unity? 0 Answers

Android | online database 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges