Database Connections For Asp.net Developers - Adobe 38040334 - Dreamweaver CS3 User Manual

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Edit or delete 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.
Edit a connection
1
Open a PHP page in Dreamweaver, and then open the Databases panel (Window > Databases).
Right-click (Windows) or Control-click (Macintosh) the connection and select Edit Connection from the menu.
2
3
Edit the connection information and click OK.
Dreamweaver updates the include file, which updates all the pages in the site that use the connection.
Delete a connection
Open a PHP page in Dreamweaver, and then open the Databases panel (Window > Databases).
1
2
Right-click (Windows) or Control-click (Macintosh) the connection and select Delete Connection from the
menu.
In the dialog box that appears, confirm that you want to delete the connection.
3
Note: To avoid getting errors after deleting a connection, update every recordset that uses the old connection by double-
clicking the name of the recordset in the Bindings panel and selecting a new connection in the Recordset dialog box.

Database connections for ASP.NET developers

Connecting to an ASP.NET database
Before you can connect to a database, you must obtain an OLE DB provider for your database. If you want to connect
to a Microsoft SQL Server database, you can use the Managed Data Provider for SQL Server that is supplied by the
.NET Framework Software Development Kit (SDK).
Before connecting to the database, you must set up an ASP.NET application. Also, the database must be set up either
on your local computer or on a system to which you have network or FTP access.
After the database provider is installed, you can use it to connect to the database.
Obtaining an OLE DB provider for your database
An ASP.NET application must connect to a database through an OLE DB provider. The provider acts as an inter-
preter that lets an ASP.NET application communicate with a database.
If you want to connect to a Microsoft SQL Server database, you can use the Managed Data Provider for SQL Server
that comes with the .NET Framework 1.1 SDK. This provider, which is optimized for SQL Server and is very fast, is
installed when you install the SDK.
If you want to connect to a database other than SQL Server, make sure an OLE DB provider for your database is
installed on the computer running the .NET Framework. You can obtain an OLE DB provider for Microsoft Access
by downloading and installing the Microsoft Data Access Components (MDAC) 2.7 package from the Microsoft
website at http://msdn.microsoft.com/data/mdac/downloads/.
September 4, 2007
DREAMWEAVER CS3
518
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents