Convenience method to import data from a database using the Import method.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public ArrayList ImportDatabase( SourceType sourceType, string connectionString, string sqlQuery, string uniqueColumnName, string resultUrlFormat )
Public Function ImportDatabase ( _ sourceType As SourceType, _ connectionString As String, _ sqlQuery As String, _ uniqueColumnName As String, _ resultUrlFormat As String _ ) As ArrayList
public: ArrayList^ ImportDatabase( SourceType sourceType, String^ connectionString, String^ sqlQuery, String^ uniqueColumnName, String^ resultUrlFormat )
Parameters
- sourceType (SourceType)
- The SourceType specifying the database type
- connectionString (String)
- Connection string for DB
- sqlQuery (String)
- The SQL query returning the data to index
- uniqueColumnName (String)
- The name of the column which uniquely identifies a row (eg. primary key)
- resultUrlFormat (String)
- The format string for the result URLs.
Return Value
Returns list of Uri objects newly imported
Remarks
The Help has much more information in the importing section, regarding databases imports.