- Home /
Computer name issue
Hello.
I'm Justin, Jeon in South Korea.
I use mssql database to make some kind of management-software by unity.
I think now, unity is very enough to make non-game application.
But, Many people still does not agree.
When I was googling 'unity with mssql', 'sql in unity' these kind of keywords,
There are many articles and answers, they always say 'Why are you using sql in unity?', 'It's NOT a good idea'.
I think The Unity has to struggle these stereotypes.
Anyway. :)
I have following log in output_log.txt in _DATA Folder.
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) Platform assembly: E:\TEST\TEST_Data\Managed\Mono.Security.dll (this message is harmless) Can not open connection ! Object reference not set to an instance of an objectSystem.NullReferenceException: Object reference not set to an instance of an object at Mono.Data.Tds.Protocol.Tds70.Connect (Mono.Data.Tds.Protocol.TdsConnectionParameters connectionParameters) [0x00000] in :0 at Mono.Data.Tds.Protocol.Tds80.Connect (Mono.Data.Tds.Protocol.TdsConnectionParameters connectionParameters) [0x00000] in :0 at System.Data.SqlClient.SqlConnection.Open () [0x00000] in :0
Following code is what I wrote.
using(SqlConnection conn = new SqlConnection(DBHelper.CONNSTRING)) { conn.Open();
SqlCommand cmd = new SqlCommand("This is query ~~~~", conn);
cmd.Execute();
}
This error shows only in non-english COMPUTER NAME.
If I set computer name in Korean, It occurs. But I set computer name in English, It doesn't.
Please, tell me why It does like this.
Answer by tormentoarmagedoom · Jun 21, 2018 at 08:47 AM
Good day.
I don't know the exactly answer ( and supose nobody here will have it, is more a Unity software issue ) But you are not the firstone coming with this kind of problem (russian characters gives problems aslo)
Using characters like japanese, corean, russian, etc... will cause problems in some libraries, or when trying to build the game. I recommend to change your name if want to use unity without this problems.
By other hand, Unity is becomeing more powerfull and with more capacities, but, is a software think for develop "virtual worlds", like games, or simulators (medical, driving, etc..) This is because Unity have a powerfull 3D / lights/effects engine. Of course you can use it for other propuses, but is like to open a cocacola with a hammer, you can do it, but is not the toll for this.
Byee!
Your answer

Follow this Question
Related Questions
Can SQLite store DB in memory with Mono/Unity 1 Answer
Retrieving data from Sqlite database using Mono.Data.Sqlite 0 Answers
Hosted Database for Mobile Game 0 Answers
Connection between menu and scene 2 Answers
Database solution networking 0 Answers