The DefaultDatabase property sets or returns a string value that is the default database for a specific server-side connection.
objconn.DefaultDatabase
<% set conn=Server.CreateObject("ADODB.Connection") conn.DefaultDatabase="northwind"
set rs=Server.CreateObject("ADODB.Recordset") rs.Open "customers",conn
....
rs.Close conn.close %>
Jump to: Top of Page or HOME or Printer friendly page
W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright 1999-2008 by Refsnes Data. All Rights Reserved.