ReplaceDatabase Property
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。
The ReplaceDatabase property directs a restore operation when a new image of the restored database is required.
構文
object.ReplaceDatabase [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetReplaceDatabase(LPBOOL pRetVal);
HRESULT SetReplaceDatabase(BOOL NewValue);
説明
If TRUE, a new image of the database is created. The image is created regardless of the presence of an existing database with the same name.
If FALSE (default), a new image of the database is not created by the restore operation. The database targeted by the restore operation must exist on an instance of Microsoft SQL Server.