To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Related Sites > SQL Course

SQL Course SQL Course > Ask questions about the lessons on SQL Course 1 and 2. If you have problems > with the interface, please post in the Feedback forum

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-16-2003, 08:59 PM
morgan215 morgan215 is offline
Junior Member
 
Join Date: Feb 2003
Location: Seoul, Korea
Posts: 2
Question How to easily perform mass insertion of data

I am new to SQL. We have an NT SQL 7 server. A small s/w co. wrote us a custom app. to run an apt.complex renting/selling program. We need to input about 2,000 records of initial tenant data which we have on Excel. There are about 15 fields for each record.

How can I easily and quickly insert all required records and fields without manually inputting by hand one by one?
Reply With Quote
  #2  
Old 02-18-2003, 05:13 AM
PinkPanther2003 PinkPanther2003 is offline
Senior Member
 
Join Date: Feb 2003
Posts: 102
USE DTS

Use the Data Transformation Services / Wizard. Look it up in BOL (MS SQL Servers help file).

This makes it as easy as it can be (which depends on the complexity of the data, it's data types, quality of the Excel data etc).

HTH,

Peter
Reply With Quote
  #3  
Old 02-19-2003, 12:28 AM
morgan215 morgan215 is offline
Junior Member
 
Join Date: Feb 2003
Location: Seoul, Korea
Posts: 2
As mentioned earlier, I am total new to working with an SQL server.
I assume there is a sequence of procedures that must be strictly followed in performing this. For instance: If the server is running, stop it, do I need to attach/detach any databases, what to do after completion of the data updates, what procedure can I use to verify it's authenticity.
Can you walk me through these procedures please?
Reply With Quote
  #4  
Old 02-19-2003, 05:04 AM
PinkPanther2003 PinkPanther2003 is offline
Senior Member
 
Join Date: Feb 2003
Posts: 102
DTS

1. Go to Enterprise Manager.

2. Explode the tree and select the database server that you wish to import the Excel data into (ie the db's name is highlighted).

3. Goto Tools > Wizards

4. Select the Data Transformation Services > DTS Import Wizard

5. Follow the Wizard. If you are familar with other database products this should be straight forward.

Excel will be your datasource.

There are numerous things that could go wrong (eg security, data typing errors) but hopefully it should work. There is no need to attach/detach databases, and if the server is stopped how can you communicate it?

SQL Servers wizards are great tools.

I would recommend training if you are going to manage a DB Server. They are complex entities.

Personally I am amazed the software you have purchased has no import tool written into it, or the programmer didn't do this for you if it is a bespoke solution.

HTH,

Peter
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:03 AM.


DatabaseJournal Recent Articles


 » Searching and Sorting Strings in Oracle

 » Preparing To Upgrade Access Tables to SQL ...

 » Sun Expands MySQL With Closed Source

 » Microsoft Demos New SQL Server Features at...

 » Wipro and Oracle Launch First Joint Innova...

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.