How to save and use templates in data import

A template is a set of import settings stored in a file.

It’s no use wasting your time on selecting the same settings each time you import data. Select once, save multiple settings to a file, and use it to have customized import without efforts.

For example, you need to import data stored in text format into an existing table once a day. You can set up the import options once, and next time all you need to do is to select Text import format and a location of Source data and click Import. To illustrate the case, let’s import .txt Source file to an existing table create a template, and then use it.

Creating Template

1. Open the Data Import wizard, select the Text import format and a path to .txt Source file.

2. Move to the Destination table wizard page, and select a Target SQL Server connection and a database. Select Existing table and in the drop-down list select the table.

3. On the Options wizard page in the Skip lines field, enter 3 to start importing the Source data from the 4th line. Since there is a header in the Source with column names, let’s specify its position, otherwise the imported columns will get default names - column1, column2. Enter 2 in the corresponding field. Select to import only even lines and Fixed width type of splitting for the Source data.


4. On the Mapping wizard page, you can see that dbForge Studio has mapped all the Source and Target columns, as all of them have the same names.

5. One more thing is left. Let’s set Universal sortable date\time format for the Source data. On the Data formats wizard page, let’s clear the Autodetect Date and Time format check box and select the format from the drop-down list.

6. Everything is appropriate, so click Import to start importing the data.

7. Click the Save Template at the bottom and specify a name and a location of a template file in the Save As dialog. Let’s call it _txt_template. This template will appear in the User templates section.

Loading Template

1. Click _txt_template, which was created following the aforementioned steps, in the Templates section on the first page of the Data Import wizard.

2. Select the Text import format and a location of the Source data.

3. On the Destination table wizard page, select the Target connection and database. Select Existing table and select the table in the drop-down list .

4. Move to the Options wizard page and see the Skip lines and Header position fields and Fixed width splitting type already selected. The same happens with mapping and a date\time format on the other wizard pages.

Want to Find out More?



Take a quick tour to learn all about the key benefits delivered by dbForge Studio for SQL Server.
All Features

All features

Get acquainted with the rich features and capabilities of the Studio in less than 5 minutes.
Request a demo

Request a demo

If you consider employing the Studio for your business, request a demo to see it in action.
Ready to start using dbForge Studio for SQL Server?