Solved

VB.net Transfer very large SQL tables between databases

Posted on 2015-02-24
5
219 Views
Last Modified: 2016-02-18
Hi

I want to build a VB.net windows form used to transfer tables of 50 to a 100 million records of data between two SQL databases. I have the connection strings for both databases. What VB.net code would I use to do this to ensure that either all the records go in (or not) in a Transact Rollback way?
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40627669
if this is a "move of records", you should not do this with a vb.net application, but with sql run on the servers using linked servers
only this way you will get an efficient transfer ( SERVER1 => SERVER2 ) and garanteed transaction control instead of  this data transfer : SERVER1 => APPLICATION => SERVER2
0
 
LVL 51

Expert Comment

by:Vitor Montalvão
ID: 40627916
This is an one shot only procedure or something that you'll do it more often? In a schedule basis, maybe?
There are some good options for importing data into a database but the solution depends on what are your needs.
0
 

Author Comment

by:Murray Brown
ID: 40627932
Hi Vitor. That is a very good question. This is definitely not a one shot procedure. It will happen on a schedule basis.
Sorry Guy, I should have mentioned that
0
 
LVL 51

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 40627948
I wouldn't develop nothing since Integration Services (SSIS) is a powerful ETL .NET tool.
Will save you hours of work as you can build the package and add it to SQL Server Agent as a job to run in a schedule basis.

Other option is to use the bcp utility. A SQL Server tool for bulk copy data. You can found more information about it here. After scripting the command you just need to schedule it using a tool like SQL Server Agent or the Task Scheduler from Windows.
0
 

Author Closing Comment

by:Murray Brown
ID: 40628092
thanks very much
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question