x


Cannot connect SQL Server After building

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!

more ▼

asked Mar 24 '11 at 07:47 AM

Boxer gravatar image

Boxer
44 2 2 6

What does your connection string to the databse look like?

Mar 24 '11 at 11:24 AM Meltdown

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

Mar 25 '11 at 03:40 AM Boxer

the same problem as yours,I use Chinese version sql server 2005 too,besides,are you Chinese?

Mar 23 '12 at 11:06 AM rayjay214

@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 ;)

Mar 23 '12 at 11:06 AM Bunny83
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Apr 20 '11 at 06:41 AM

Boxer gravatar image

Boxer
44 2 2 6

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x657
x232
x62

asked: Mar 24 '11 at 07:47 AM

Seen: 1355 times

Last Updated: Mar 23 '12 at 11:10 AM