Connectstring tips In all my example code on connection strings I have imlemented a function called Incdb_GetConnectionString which takes one parameter ( nNumber ).

Function Incdb_GetConnectionString( nNumber )
    Incdb_GetConnectionString = "sqlexper"
End Function
Why? Well, most important is to put the connection string generation into a separate file, which is then included from all other ASP files needing a database connection. NEVER hardwire the connection string in a ASP file, cause it will come a day when you need to change something in it ( maybe you are changing host, upgrading to SQL Server etc ) and by following my advice you will only need to apply those changes in one single spot then.

Information and tips