Dynamicweb 8 Documentation
DatabaseExists Method

Name of the database.
Helper method to determine whether the physical database with the given name exists on the disk. This will always return true for solutions using MS SQLServer.
Syntax
'Declaration
 
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> 
Public Shared Function DatabaseExists( _ 
   ByVal databaseName As String _ 
) As Boolean
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] 
public static bool DatabaseExists( 
   string databaseName 
)

Parameters

databaseName
Name of the database.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Database Class
Database Members

Send Feedback