views:

94

answers:

3

What is the difference between Database and Data Source?

+5  A: 

A data source is simply something your program relies on to get data. A database is a kind of data source that persists data to some digitized form. Other data sources include files, services, etc — these all provide data to your programs.

BoltClock
A: 

Data Source may not be connected to DB, it can be just file system or any source of data.

fastcodejava
+1  A: 

Further to BoltClock's answer, here are example of Databases (or Database Servers) vs various Data Sources.

Databases

  1. SQL
  2. Oracle
  3. MySQL

Data Sources

  1. All of the databases above
  2. XML Files
  3. CSV Files
  4. Web Services
  5. and many many more..
Marko
The list of 'databases' is actually a list of DBMS - Database Management Systems.
Jonathan Leffler