Generates a series of Transact-SQL statements (script) to create the underlying database.
strScript = Database.Script (
[[ScriptType :=] tScriptType,]
[[ScriptFilePath :=] strFile] )
HRESULT pDatabase->Script (
SQLOLE_SCRIPT_TYPE tScriptType = SQLOLEScript_Default,
SQLOLE_LPCSTR strFile = NULL,
SQLOLE_LPBSTR pstrScript = NULL );
Element | Type | Description |
---|
strScript | String | Generated Transact-SQL script |
tScriptType | SQLOLE_SCRIPT_TYPE | Type of script to generate |
strFile | String | Full path and filename to use to store the Transact-SQL script |
The generated Transact-SQL script can be used for database recovery.
sp_help_revdatabase