![]() |
VOOZH | about |
Using SQL Server as a backup for critical business data provides an essential safety net against loss. Backing up data to SQL Server enables business users to more easily connect that data with features like reporting, analytics, and more.
This example demonstrates how to use the CData SSIS Tasks for Gmail inside of a SQL Server SSIS workflow to transfer Gmail data into a Microsoft SQL Server database.
To get started, add a new Gmail source and SQL Server ADO.NET destination to a new data flow task.
๐ The Data Flow task used in this example. (Salesforce is shown.)Follow the steps below to save Gmail connection properties in a connection manager.
There are two ways to authenticate to Gmail. Before selecting one, first ensure that you have enabled IMAP access in your Gmail account settings. See the "Connecting to Gmail" section under "Getting Started" in the installed documentation for a guide.
The User and Password properties, under the Authentication section, can be set to valid Gmail user credentials.
Alternatively, instead of providing the Password, you can use the OAuth authentication standard. To access Google APIs on behalf on individual users, you can use the embedded credentials or you can register your own OAuth app.
OAuth also enables you to use a service account to connect on behalf of users in a Google Apps domain. To authenticate with a service account, register an application to obtain the OAuth JWT values.
In addition to the OAuth values, provide the User. See the "Getting Started" chapter in the help documentation for a guide to using OAuth.
๐ Configuring a connection (Salesforce is shown).Follow the steps below to specify the query to be used to extract Gmail data.
SELECT Subject, Size FROM Inbox๐ The SQL query to retrieve records. (Salesforce is shown.)
Follow the steps below to specify the SQL server table to load the Gmail data into.
You can now run the project. After the SSIS Task has finished executing, your database will be populated with Gmail data.
๐ The completed import. (Salesforce is shown.)Download a free trial of the Gmail SSIS Component to get started:
Download NowLearn more:
๐ Gmail IconPowerful SSIS Source & Destination Components that allow you to easily connect SQL Server with Gmail through SSIS Workflows.
Use the Gmail Data Flow Components to synchronize with Gmail messages and folders. Perfect for data synchronization, local back-ups, workflow automation, and more!