Database 생성자
Initializes a new instance of the Database class.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo
구문
‘선언
Public Sub New
‘사용 방법
Dim instance As New Database()
public Database()
public:
Database()
new : unit -> Database
public function Database()
주의
기본 생성자는 모든 필드를 기본값으로 초기화합니다.
You will have to specify which server is the parent of the database before you can create a database.
예제
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()