Costruttore Database
Initializes a new instance of the Database class.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Sub New
'Utilizzo
Dim instance As New Database()
public Database()
public:
Database()
new : unit -> Database
public function Database()
Osservazioni
Il costruttore predefinito inizializza tutti i campi in base ai valori predefiniti.
You will have to specify which server is the parent of the database before you can create a database.
Esempi
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()