SQL Hosting
SQL hosting means running a database on infrastructure that an application can connect to. The database may live on the same server as the application, on a managed database service, or on dedicated infrastructure maintained by a team.
What matters when choosing SQL hosting
- Backups and restore testing.
- Security updates and access control.
- Connection limits and expected traffic.
- Storage size, memory and CPU requirements.
- Monitoring, logs and support for incidents.
Connection example
Applications normally connect using a host, database name, user and password. The exact format depends on the language and driver.
-- The SQL query is the same after the connection is established.
SELECT customer_id, customer_name
FROM customers
ORDER BY customer_name;
Local vs hosted database
A local database is useful for development and learning. A hosted database is designed to be reachable by an application, protected by permissions and maintained with backups. Production databases deserve boring reliability. Exciting databases usually mean someone is awake at 3 AM.
Related topics
Continue with SQL Backup Database, SQL CREATE DATABASE and SQL Injection.