I once, long ago, on this very forum made a program that I "thought" was hacker proof, but some guy dissasembled the code and somehow read the password I stored in a variable.

My question is, is it safe to put a connection string in a variable in my code ( Not that there is any way around it that I can think of) that connects to a remote database on the web?.

I would hate for someone to simply decompile my code and read the connection string and then easily hack my database.

Is there any way around it, or to make it more secure?

Thanks!