dbTalk Databases Forums  

Active x Script for data copy from source to destination

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


Discuss Active x Script for data copy from source to destination in the microsoft.public.sqlserver.dts forum.



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

Default Active x Script for data copy from source to destination - 01-30-2004 , 12:53 PM






Hello,
I'm dumping data into the database by
1. FTP the text files from unix server to windows.

2. Load the data into the temp table and wrote the vb
script (if .. else..) to convert the dates and logical
values and numbers.

3. Load the data to the base table from the temp table
within sql server.

4. Loading about 2 million records with about 200 fields.

5. This is taking about 10 hours for each table.

SQL Gurus!! Could you please suggest me what can I do so
this would run much faster.
The step which does the active x script to dump data to
temp table takes long time.

Any advice would be appreciated.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Active x Script for data copy from source to destination - 01-31-2004 , 01:38 AM






Point 1 is OK
BULK INSERT the files into temp table
Use TSQL CASE statement to do the maniuplation if you can. This will be
faster then the VBScript version



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"desperate" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,
I'm dumping data into the database by
1. FTP the text files from unix server to windows.

2. Load the data into the temp table and wrote the vb
script (if .. else..) to convert the dates and logical
values and numbers.

3. Load the data to the base table from the temp table
within sql server.

4. Loading about 2 million records with about 200 fields.

5. This is taking about 10 hours for each table.

SQL Gurus!! Could you please suggest me what can I do so
this would run much faster.
The step which does the active x script to dump data to
temp table takes long time.

Any advice would be appreciated.



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.