dbTalk Databases Forums  

Text file with over 200000 records into SQL Server

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Text file with over 200000 records into SQL Server in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shawn Ferguson
 
Posts: n/a

Default Text file with over 200000 records into SQL Server - 09-16-2005 , 08:29 AM






What is the best way to set up a DTS routine to input the textfile with over 200,000 records into a database table once every month. Currently everything is in Access and the textfile is read sequentially and inserted into Access using a webpage, but now I want to move it to SQL Server. What is the best way?

Thanks!


Reply With Quote
  #2  
Old   
Brian Lawton
 
Posts: n/a

Default Re: Text file with over 200000 records into SQL Server - 09-16-2005 , 08:37 AM






Assuming you are just doing a strait transfer, then create two connections,
one to your access database and the other to SQL Server. Then add a DataPump
task to move the data. After creating the package, you can manually run the
package as needed or schedule it via SQL Agent to automatically run at
whatever interval you need.

--
--Brian
(Please reply to the newsgroups only.)


"Shawn Ferguson" <SFergus2 (AT) cscc (DOT) edu> wrote

What is the best way to set up a DTS routine to input the textfile with over
200,000 records into a database table once every month. Currently
everything is in Access and the textfile is read sequentially and inserted
into Access using a webpage, but now I want to move it to SQL Server. What
is the best way?

Thanks!



Reply With Quote
  #3  
Old   
Shawn Ferguson
 
Posts: n/a

Default Re: Text file with over 200000 records into SQL Server - 09-16-2005 , 08:44 AM



I want to eliminate the Access file and use only the Text file and SQL Server. Right now they use the textfile to Access. Acutally the source comes from an old version of Paradox to text file to Access.

Thanks.


Quote:
Brian Lawton<brian.k.lawton (AT) redtailcreek (DOT) com> 09/16/05 9:37 AM
Assuming you are just doing a strait transfer, then create two connections,
one to your access database and the other to SQL Server. Then add a DataPump
task to move the data. After creating the package, you can manually run the
package as needed or schedule it via SQL Agent to automatically run at
whatever interval you need.

--
--Brian
(Please reply to the newsgroups only.)


"Shawn Ferguson" <SFergus2 (AT) cscc (DOT) edu> wrote

What is the best way to set up a DTS routine to input the textfile with over
200,000 records into a database table once every month. Currently
everything is in Access and the textfile is read sequentially and inserted
into Access using a webpage, but now I want to move it to SQL Server. What
is the best way?

Thanks!



Reply With Quote
  #4  
Old   
Brian Lawton
 
Posts: n/a

Default Re: Text file with over 200000 records into SQL Server - 09-16-2005 , 08:55 AM



In that case, create a Text File (Source) connection instead of the Access
connection. The rest remains the same. If you wanted, you could also
connect directly to the Paradox files using the Paradox connection but
again, other than changing the connection type, the process of using the
DataPump Task remains the same.

As an alternative, if the data file resides on the SQL Server box, then you
could also use the BulkInsert Task instead of the DataPump Task to move the
data. BulkInsert is a bit faster but has the limitation of where the data
can reside. Books-online can provide more details on the differences
between the tasks.

--
--Brian
(Please reply to the newsgroups only.)


"Shawn Ferguson" <SFergus2 (AT) cscc (DOT) edu> wrote

I want to eliminate the Access file and use only the Text file and SQL
Server. Right now they use the textfile to Access. Acutally the source
comes from an old version of Paradox to text file to Access.

Thanks.


Quote:
Brian Lawton<brian.k.lawton (AT) redtailcreek (DOT) com> 09/16/05 9:37 AM
Assuming you are just doing a strait transfer, then create two connections,
one to your access database and the other to SQL Server. Then add a DataPump
task to move the data. After creating the package, you can manually run the
package as needed or schedule it via SQL Agent to automatically run at
whatever interval you need.

--
--Brian
(Please reply to the newsgroups only.)


"Shawn Ferguson" <SFergus2 (AT) cscc (DOT) edu> wrote

What is the best way to set up a DTS routine to input the textfile with over
200,000 records into a database table once every month. Currently
everything is in Access and the textfile is read sequentially and inserted
into Access using a webpage, but now I want to move it to SQL Server. What
is the best way?

Thanks!




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.