IncludeDB Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The IncludeDB property specifies whether to create a database on the destination server during a data transfer operation.


object
.IncludeDB [= value]

object

An expression that evaluates to an object in the Applies To list

value

TRUE or FALSE

Boolean

Read/write

HRESULT GetIncludeDB( LPBOOL pRetVal);
HRESULT SetIncludeDB(BOOL NewValue);

With the IncludeDB property set to TRUE, a database does not need to exist at a destination server before database objects can be copied during a transfer operation. The IncludeDB property generates a destination database creation statement at the beginning of script execution during a transfer operation.

The default is FALSE.

ms138451.note(en-US,SQL.90).gifNote:
IncludeDB can be used with Microsoft SQL Server 2005, SQL Server 2000, and SQL Server version 7.0.

Community Additions

ADD
Show: