Editing Or Deleting A Database Connection - MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

Case 2:
You use the .NET Framework on a remote development server and you want to connect
to a Microsoft Access database called mtnSchool.mdb located on the server in the following
folder: d:\users\tara\projects\MtnDrivingSchool\data\mtnSchool.mdb. Here are the parameters
to create the connection string:
Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=d:\users\tara\projects\MtnDrivingSchool\data\mtnSchool.mdb;
Case 3:
You use the .NET Framework on a networked development server called Savant and you
want to connect to a Microsoft SQL Server database called pubs on the server. Your SQL Server
user name is "sa" and there is no password. If you use the Managed Data Provider for SQL Server
(that is, if you chose SQL Connection in the Databases panel), here are the parameters to create
the connection string:
Data Source=Savant;
Initial Catalog=pubs;
User ID=sa;
Password=;

Editing or deleting a database connection

When you create a database connection, Dreamweaver stores the connection information in an
include file in the Connections subfolder in the site's local root folder. You can edit or delete the
connection information in the file manually or as follows.
To update a connection:
Open an ASP.NET page in Dreamweaver, then open the Databases panel
1
(Window > Databases).
A list of connections appears in the panel.
Right-click (Windows) or Control-click (Macintosh) the connection and select Edit
2
Connection from the pop-up menu.
The dialog box you used to create the connection appears.
Make the changes and click OK.
3
Dreamweaver automatically updates the include file, which automatically updates all the pages in
the site that use the connection.
If you rename a connection, update every DataSet that uses the old connection name by
double-clicking the recordset in the Bindings panel and selecting the new connection name in
the DataSet dialog box.
To delete a connection:
Open an ASP.NET page in Dreamweaver, then open the Databases panel
1
(Window > Databases).
A list of connections appears in the panel.
Right-click (Windows) or Control-click (Macintosh) the connection and select Delete
2
Connection from the pop-up menu.
The dialog box you used to create the connection appears.
Confirm that you want to delete the connection.
3
Note: To avoid getting errors after deleting a connection, update every DataSet that uses the old
connection by double-clicking the name of the DataSet in the Bindings panel and selecting a new
connection in the DataSet dialog box.
468
Chapter 25: Database Connections for ASP.NET Developers

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents