Access online SQL Server with Desktop App
===

What is the best, as in most secure way to access an online database with a stand-alone desktop application? I have been told it is suggested that you use a local database for security reasons. But I want a web app and desktop app to share the same online database so I can update it without having to update the desktop application.

I am using the .net 4 framework and c#.