'Best/most secure way to connect to SQL server?

What would be the best way to connect to a SQL server without storing sensitive login information client-side?

Perhaps: CppClient->HTTP+PHP->SQL?

Any better ideas are much appreciated. Links to libraries, pseudo-code, or raw code. Anything is much appreciated.

Thanks :)



Solution 1:[1]

If you are talking about what I think your talking about you are saying that you want to know how to have say clients connect from your app to your database? If this is the case you would want to plug into an api. Never give direct access from your app or program to your secure database. There is no safe way to store that locally.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1