dotConnect for PostgreSQL Documentation
Devart.Common Namespace / DbDump Class / BackupQuery Method / BackupQuery(String) Method
The query, returning data for backup.
Example

BackupQuery(String) Method
Generates a script with a backup of the data, returned by the specified query, and writes it to the DumpText property.
Syntax
'Declaration
 
Public Overloads Sub BackupQuery( _
   ByVal query As String _
) 
 

Parameters

query
The query, returning data for backup.
Example
The following example dumps the query data to the DumpText property.
dump.BackupQuery("SELECT * FROM DEPT WHERE Deptno > 50");
dump.BackupQuery('SELECT * FROM DEPT WHERE Deptno > 50')
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also