Solved

loading data to a SQL server

Posted on 1998-07-02
7
274 Views
Last Modified: 2010-03-19
I have created a database and its devices in the SQL server, I need to populate data into this server. I have this data in a file at a different server, how can I transfer this data (just the data) into my database.
0
Comment
Question by:khal
[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
  • 2
  • +1
7 Comments
 

Accepted Solution

by:
peterprice earned 40 total points
ID: 1091646
Use a piece of software such as access/vb3 that can access the remote database via either ODBC through its own SQL or by sending natively. then use the software to read the flat file (I assume that is what you mean) and issue inserts to the database.
0
 

Author Comment

by:khal
ID: 1091647
could you explain more please? and is the insert command going to be implemented on each table !!(I have a huge database)
0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1091648
If you want the simpliest soluution, use Access,  but  using ODBC to load huge amount of data could take hours. If you need performance,you should use SQL Server own facility, which will be several times faster. Difference can be more then 10 times.
0
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
LVL 1

Expert Comment

by:jboyd
ID: 1091649
If you want I can send you a BCP program that we have written to transfer data directly from one Sybase/MS SQL Server to another Sybase/MS SQL Server. It is much faster than having to BCP out to a file then BCP back in from a file. We usually build a batch file to call this EXE for each table by selecting all the tables in sysobjects.
0
 

Author Comment

by:khal
ID: 1091650
I am using Transact SQL, does your BCP program support that? if yes please send me this program, I would like to have it, thanks.
0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1091651
BCP is installed with  SQL Server.
0
 
LVL 1

Expert Comment

by:jboyd
ID: 1091652
It does come with SQL Server, but you must BCP out to a file then in from a file. My program BCPs from server to server, no file involved, cutting the time in half. You can also specify the actual select statement from the source server so you can change the order of columns or actually BCP a subset of columns from one table into another table. Quite helpfull for removing a column from a table, and quickly moving the data. I am making some minor changes to the program right now, but I will try to e-mail it out in the next few days.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

717 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