Using SQL Server Integration Services (SSIS) to populate QuickBooks records
The QuickBooks ODBC driver allows you to insert data into QuickBooks by using an SSIS package.
Before you can use the QuickBooks ODBC driver to connect SSIS to QuickBooks, you need to configure an ODBC data source. An ODBC data source stores the connection details for the target database (in this case, QuickBooks) and the ODBC driver that is required to connect to it (in this case, the QuickBooks ODBC driver).
You configure ODBC data sources in ODBC Data Source Administrator, which is included with Windows. To run ODBC Data Source Administrator, in the Windows Run dialog box, enter:
%windir%\syswow64\odbcad32.exe
Use ODBC Data Source Administrator to create a QuickBooks ODBC driver data source:
- Choose the System DSN tab, and then choose Add.
- In the Create New Data Source dialog box, choose Easysoft ODBC-QuickBooks Desktop Driver, and then choose Finish.
- Complete these fields in the Easysoft ODBC-QuickBooks Desktop Driver DSN Setup dialog box:
Setting Value DSN QuickBooks Desktop
Connection Mode Same As QuickBooks
Application Name EasysoftQuickBooksODBC
Application ID EasysoftQuickBooksODBC
QB Edition Set this to be the same as QuickBooks Desktop. For example, if you have the US version of QuickBooks, set QB Edition
toUS
.
Create the SSIS project:
- Create a text file named
billingrate.txt
with these contents:Name,FixedBillingRate "BR1A",5.00 "BR1B",10.00 "BR1C",15.00 "BR1D",20.00 "BR1E",25.00
- Start QuickBooks Desktop if it is not already running.
- In SSIS, create a new project named
QuickBooksBillingRate
. - Drag a Data Flow Task from the SSIS Toolbox to the Control Flow.
- Name the Data Flow Task
CreateBillingRate
. - Double-click
CreateBillingRate
. - In the Data Flow tab, double-click a Flat File Source. Name the Flat File Source
BillingRate
. - Double-click
BillingRate
.The Flat File Source Editor dialog box is displayed.
- Choose New.
The Flat File Connection Manager Editor dialog box is displayed.
- Browse for
billingrate.txt
. In the Text qualifier box, type"
. - In the left hand pane, choose Columns. Choose OK.
- In the Data Flow tab, double-click ODBC Destination. Name the ODBC Destination
BillingRateTable
. - Drag the blue arrow from
BillingRate
toBillingRateTable
. - Double-click
BillingRateTable
The ODBC Destination dialog box is displayed.
- Choose New.
The Configure ODBC Connection Manager dialog box is displayed.
- Choose New.
The Connection Manager dialog box is displayed.
- Choose your QuickBooks ODBC driver data source from the Use user or system data source name list. Choose OK.
- In the ODBC Destination dialog box, enter
BillItemLine
in the Name of the table or the view box. - QuickBooks prompts you to whether to allow the QuickBooks ODBC driver to access your QuickBooks data. In the QuickBooks - Application with No Certificate dialog box, choose Yes, always allow access even if QuickBooks is not running. Choose Allow this application to access personal data such as Social Security Numbers and customer credit card information. Choose Continue.
The Confirm to Proceed dialog box is displayed.
- Choose Yes.
The Access Confirmation dialog box is displayed. Choose OK.
- In the Mappings pane, map each input column to a destination column that has the same name. Choose OK.
- Choose the Control Flow tab, and then choose Start.
The BillingRate table is populated with the new records.