The DatabaseLoadOptions class enables you to configure how database documents and scripts are loaded in GroupDocs.Conversion. This class supports enterprise database formats used in corporate environments and database administration.
DatabaseLoadOptions works with database formats including NSF (Lotus Notes/IBM Notes storage) and SQL (Structured Query Language scripts).
Properties
Property
Type
Description
Format
DatabaseFileType
The input database format (get; set;)
Basic Usage
For most scenarios, GroupDocs.Conversion automatically detects the database format:
GroupDocs.Conversion supports multiple database formats through DatabaseLoadOptions. Each format should be explicitly specified:
NSF (Lotus Notes Storage Facility)
NSF is the database file format used by IBM Notes (formerly Lotus Notes), commonly used for storing emails, calendars, documents, and forms in enterprise environments:
Convert different database formats in a single workflow:
// NSF to PDFusing(varconverter=newConverter("team-calendar.nsf",(LoadContextloadContext)=>newDatabaseLoadOptions{Format=DatabaseFileType.Nsf})){converter.Convert("team-calendar.pdf",newPdfConvertOptions());}// SQL to PDFusing(varconverter=newConverter("migration-script.sql",(LoadContextloadContext)=>newDatabaseLoadOptions{Format=DatabaseFileType.Sql})){converter.Convert("migration-script.pdf",newPdfConvertOptions());}
GroupDocs.Conversion automatically detects the database format in most cases, so DatabaseLoadOptions is optional unless you need specific loading configuration.
Output Format Compatibility
Database documents can be converted to various output formats:
When converting NSF files, GroupDocs.Conversion processes the database structure and content, making it suitable for archival and documentation purposes.
SQL Format Details
SQL files typically contain:
CREATE TABLE statements
ALTER TABLE modifications
INSERT/UPDATE/DELETE operations
SELECT queries
Stored procedures
Database constraints and indexes
Converting SQL files to PDF creates readable documentation of database schemas and operations, useful for:
Code reviews
Database design documentation
Training materials
Change management records
Summary
DatabaseLoadOptions provides control over database document loading:
Format: Specify NSF or SQL format explicitly
Supports: IBM Notes databases (NSF) and SQL scripts
Use Case: Enterprise data archival, compliance, database documentation
All examples on this page have been verified through automated testing to ensure accuracy.