Tutorials References Menu

ADO DefaultDatabase Property


❮ Complete Connection Object Reference

The DefaultDatabase property sets or returns a string value that is the default database for a specific server-side connection.


Syntax

objconn.DefaultDatabase

Example

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.DefaultDatabase="northwind"

set rs=Server.CreateObject("ADODB.Recordset")
rs.Open "customers",conn

....

rs.Close
conn.close
%>

❮ Complete Connection Object Reference