The following "add key" line must be added to your web.config file in the appSettings section (not in the system.web section!): Then, you can use the following line of VB in your scripts/subroutines to retrieve that application key variable's value: Dim sDSN As String = ConfigurationSettings.AppSettings("DatabaseConnectionString") This approach lets you enhance the portability and maintainability of your applications because you only have to change the database information in one file, rather than all of your application files! copyright 2004 Brian J. Reithel, Ph.D.