INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to import data from Excel

How to import data from Excel

(OP)
Hi all,

I want to know how to import data from Excel file in Teradata.
Can you guide particular for me?

Thanks,
Anthony

RE: How to import data from Excel

If you only have Excel and no other tools then I would suggest creating an empty table in Teradata and using VBA to establish a connection from Excel to Teradata.  You can then use VBA to load the data.  Below is some information that you would need to manage the connection (it executes SQL stored in an excel cell, so you could use excel to generate a Insert state with your values), but I suggest going to the VBA forum for additional help.


Dim cnnTeradata As ADODB.Connection
Dim rsTblDetails As ADODB.Recordset

'open connection to Teradata

Set cnnTeradata = CreateObject("ADODB.Connection")
cnnTeradata.Properties("Prompt") = 1
cnnTeradata.Open

Set cmdCommand = New ADODB.Command
Set cmdCommand.ActiveConnection = cnnTeradata
With cmdCommand
    .CommandTimeout = 2000
    .CommandText = Worksheets("SQL").Cells(1, 1)
    .CommandType = adCmdText
    .Execute
End With
cnnTeradata.Close

RE: How to import data from Excel

hey
we can also do it alternately i have done it in a project
first we load the file in acess database and create a file that is directly send to the teradata server by vb script running in background.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close