Dynamic Web Tutorials and Notes
Connect to Database - set up DSN (DataSource Name)
One of the most powerful applications of Dreamweaver MX is how easy it is to connect to a Database. You do this using a DSN - DataSource Name. You can also use a DSN-less connection, but this is more complicated and is best to leave for the moment.
- Create a new folder called database in the C:\inetpub\wwwroot\testsite
folder
- Put sample database (test.mdb) in C:\inetpub\wwwroot\testsite\database
folder

- Open Dreamweaver MX
- Click ‘Window>Databases’
- Click ‘+’ button

- Click ‘Data Source Name’
- Name the connection – connTest
- Click ‘Define’
- Click ‘System DSN’ tab
- Click ‘Add’
- Click ‘Microsoft Access Driver’
- Click ‘Finish’
- Name the Data Source – test Data
- Description – testing database
- Click ‘Select’
- Browse to C:\inetpub\wwwroot\testsite\database folder
- Select sample database – test.mdb
- Click ’OK’
- Click ‘Test’
- Connection was made successfully - Click ’OK’
- Your connection should now look like this: