Call Toll Free: 1-888-484-3535    

  Automation Anywhere - The Automation Software

Data Transfer & Data Migration -> T69- Migrate data from Excel to Database

Task Description: Migrate data from Excel to Database.

Solution
1.Create new task Click on New->Task Editor
2.Connect to the database Using the Database command from the Application category specify a connection string to connect to the  Database Screenshot 1.

Connect to '<database connection string>

3.Copy records from Excel
  • Let's say you want to transfer Excel records as shown in Screenshot 2
  • Create 4 variables, $Firstname$, $Lastname$, $City$ and $Country$ of type value from Tools->Variable Manager.
  • Copy each cell from Excel and assign the value of Clipboard to respective variables using 'Assign From Clipboard' option in Clipboard command.
4.Transfer records to the Database
  • Specify Insert query to insert records in destination database. The insert query for this example looks like as follows

INSERT INTO Addresses ( FirstName, [Last Name], City, Country ) VALUES ('$FirstName$', '$LastName$', '$City$', '$Country$');

  • Put these commands in a Loop for as many times as you want to transfer the records from Excel.
  • The final task would look as shown in Screenshot 3
 

When you run this task, it connects to the source database, copies the excel records, with insert query in loop it will add all the records to destination table in the database. This tutorial demonstrates use of one of the very powerful features of Automation Anywhere, 'Database' applications. Use this when you want to migrate large numbers of records from excel or other applications to any database.

Screenshot 1:

Screenshot 2:

Screenshot 3:

 

E-Mail: Enter your email address to receive information about new products & offers from Tethys Solutions.


 PRODUCTS

 Automation Anywhere
   Standard & Premier
   Enterprise
 Workspace Macro Pro
 Workspace Macro
 Launch-n-Go
 Free Downloads
 Compare Products
 

 SOLUTIONS FOR

 Home & Home Office
 Business & IT
 Partners
 Developers
 

 SERVICES

 Ask The Expert
 Consulting Service
 

 PURCHASE

 BUY NOW
 Pricing
 Upgrades
 Our Guarantee

 SUPPORT

 FAQ & Examples
 Have a Question?
 Open A Support Case
 Forums
 

 QUICK LINKS

 Productivity Essentials
 Pre-defined Templates
 

 GENERAL

 Tell A Friend, Win a CD
 Affiliates
 Articles: Macro &
 Automation

 Get RSS Feeds

 Press & News
 Contact Us
Home |Site Map |Privacy Policy |About Us |Contact Us

Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved. Trademarks