I am sure I answered this question the other day, have you asked it twice under different accounts ?
If your app is on a LAN, you just point your query string to a machine on the LAN running SQL Server. If not, you can host your DB on the web and provide access to it via a web service.
Please don't ask this again, edit your question if you want more info.