I wrote a WinForm application using C #. The application must be connected to the database, so it contains a code, for example:
String connstring = String.Format("Server={0};Port={1};" + "User Id={2};Password={3};Database={4};", "localhost", "3456", "username", "password", "databasename" );
This means that the user and password of the database server are included inside the application. I think this is not a safe way. Is there a way to improve security?
Ahmed source share