|
Hi there! I'm using SQL Server 2008 as my database. When I run the game under Unity3D Project, everything works well, but if I build a .exe file under Windows 7 and run it outside, I cannot connect the SQL Server anymore. Anyone knows the solution? Do I miss some settings? Thanks!
(comments are locked)
|
|
I worked it out finally! Since I'm using a Chinese version SQL Server 2008, I need a I18N.CJK.dll(China,Japan,Korea) besides I18N.West.dll and I18N.dll under Assets folder. It works well now.
(comments are locked)
|

What does your connection string to the databse look like?
Like this: string connstr = "Server=XZZ-PC\ProjectData;" + "Database=FJHHbattlefieldEnvironments;" + "User ID=sa;" + "Password=123456"; conn=new SqlConnection(connstr); conn.Open(); and it works well before building the exe
the same problem as yours,I use Chinese version sql server 2005 too,besides,are you Chinese?
@rayjay214: Use comments if you don't post an answer.
btw. according to Li Lincheng's user page he / she lives in china so i guess he / she is chinese ;)