Sub Appplication_OnStart ' project data connection Application("MyConnectionString") = "DSN=MyDSN;UID=sa;PWD=MyPwd;Database=MyDB" '(or you can do the same for OleDB instead) End SubThen in an ASP page:
Set oConn = Server.CreateObject("ADODB.Connection") oConn.ConnectionString = Application("MyConnectionString") oConn.OpenThis way the connection string is not hardcoded in all you ASP pages but read from global.asa as needed.