Quantcast
Channel: Questions in topic: "external-libraries"
Viewing all articles
Browse latest Browse all 86

Computer name issue

$
0
0
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.

Viewing all articles
Browse latest Browse all 86

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>