Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7874865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:53:03+00:00 2026-06-03T02:53:03+00:00

Is there a method to do this ? I have like 6000 rows in

  • 0

Is there a method to do this ? I have like 6000 rows in excel, and it would take months to import it into the sql database.

For example there are : Column A and Column B in excel and I’d like to import it into Column A and Column B into an sql table.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:53:04+00:00Added an answer on June 3, 2026 at 2:53 am

    Here is an approach through VBA that I used for a book database. Not too tough as long as you can establish a connection to the DB. Obviously you will have to tweek it a bit for it to work with your database and your data. In particular you will have to adjust the sql string to connect you your database (change “test.yourdatabase”)

    Sub addBook(title As String, author As String, link As String, foundBy As String)
      ' for this code to work, you need a reference to the MS Activex
      ' data access objects
      ' Tools|References... microsoft activex data objects 2.8 (or newer)
    
      Dim cn As New Connection
      Dim cs As String
      Dim un as String
      Dim pw as String
      Dim sql As String
    
    
      cs = "DRIVER=SQL Server;SERVER=websql.org,5901;DATABASE=websql" 'connection string 
    
      un = username 'this is the username for the database
    
      pw = password 'this is the password for the database account
    
      cn.Open cs, Range("un").Value, Range("pw").Value
    
    
      sql = "insert into test.yourdatabase(searchtitle, searchAuthor, link, foundBy, foundTime) values(" & _
      "'<TITLE>', " & _
      "'<AUTHOR>', " & _
      "'<LINK>', " & _
      "'<FOUNDBY>', " & _
      "getdate());"
    
      'replace statements are for correcting any ' that occure in the titles or names
    
      sql = Replace(sql, "<TITLE>", Replace(title, "'", "''"))
      sql = Replace(sql, "<AUTHOR>", Replace(author, "'", "''"))
      sql = Replace(sql, "<LINK>", Replace(link, "'", "''"))
      sql = Replace(sql, "<FOUNDBY>", Replace(foundBy, "'", "''"))
    
      'Debug.Print sql
    
     cn.Execute sql
    
      cn.Close
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there builtin method that would do this or do I always have to
I know there is a method like this : setTimeout(functionA();,1250); That can delay my
I would like to encrypt cookies in ASP.NET. I have followed the method in
I would like to have a method like -(void)removeAllChildrenWithTag:(int)tag in a CCNode-subclass. How would
Trying to use GridBagLayout. I have the method called buildLabel. This creates three label.
Is there any method to do this: SELECT * FROM `cores` WHERE superkinds IN
Is there a way to say this method returns this using Generics? Of course,
Is there a way to make this method generic so I can return a
Is there any way to simplify this method? Perhaps a way to && both
Is there a standard method I can use in place of this custom method?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.