If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Loading data from Mainframe to SQL-server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-04, 22:58
manabendra manabendra is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
Loading data from Mainframe to SQL-server

Hi,

Presently I am working in a data-conversion project where we are processing data in mainframe and then doing FTP into our local PC and then thru DTS package, loading into SQL-server tables. Is there any way so that we can load data directly from mainframe to SQL-server database bypassing all FTP and DTS package creations.


Thanks in advance.
Manabendra.
Reply With Quote
  #2 (permalink)  
Old 12-09-04, 01:08
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
There are many ways, but each has costs and benefits... It depends quite a bit on what kind of connectivity exists between the SQL Server and the mainframe.

In the best case, you can import the data directly using SQL Server's BULK INSERT command. This assumes that you can see files on the mainframe directly (ala NFS).

In the worst case, you can design DTS packages that will copy the files from the mainframe to your NT server (using an FTP or executable task), load the data from the NT file into the SQL Server, then delete the NT file.

There are a number of steps between the best and worst cases, but they depend on what communications facilities you've got between the mainframe and your SQL Server.

-PatP
Reply With Quote
  #3 (permalink)  
Old 12-11-04, 18:43
manabendra manabendra is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
Smile

Thanks for your input, aithough we are doing BULK INSERT.
Reply With Quote
  #4 (permalink)  
Old 12-13-04, 13:06
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Glad you've found a solution!

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On