Database Constructor ()
Initializes a new instance of the Database class.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Deklaracja
Public Sub New
public Database ()
public:
Database ()
public Database ()
public function Database ()
Remarks
The default constructor initializes any fields to their default values.
You will have to specify which server is the parent of the database before you can create a database.
Example
Dim srv As Server
srv = New Server()
'Create a new database by using the default constructor.
Dim db As Database
db = New Database
db.Name = "New_Database"
db.Parent = srv
db.Create()
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.