dbTalk Databases Forums  

Migrating data from EXCEL to SqlServer

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


Discuss Migrating data from EXCEL to SqlServer in the microsoft.public.sqlserver.dts forum.



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

Default Migrating data from EXCEL to SqlServer - 06-17-2004 , 05:52 AM






Hi experts,
i make migrate more tables from excel into sqlserver, so i think to use DTS.
This tables (more than 200) are all equals and i try tu use wizard and it
work.
How i make an automation to do this?

Thnaks for suggestion!

alberto



Reply With Quote
  #2  
Old   
Douglas Laudenschlager [MS]
 
Posts: n/a

Default Re: Migrating data from EXCEL to SqlServer - 06-24-2004 , 04:32 PM






SQL Server 2000 DTS does not have any features that facilitate looping. Here
is an article that describes looping through the files in a directory:

http://www.sqldts.com/default.aspx?246

If you can write Visual Basic (or other) programming code, you could (1) use
global variables in a DTS package for your source workbook and worksheet
names and (2) loop in VB through your source worksheets, programmatically
executing the package repeatedly with the new variable values.

Q315661 HOW TO: Run a SQL Server DTS Package from Visual Basic
http://support.microsoft.com/default...;EN-US;Q315661

-Doug

--
Douglas Laudenschlager
Microsoft SQL Server documentation team
Redmond, Washington, USA

This posting is provided "AS IS" with no warranties, and confers no rights.

"3gA" <albertoi (AT) despammed (DOT) com> wrote

Quote:
Hi experts,
i make migrate more tables from excel into sqlserver, so i think to use
DTS.
This tables (more than 200) are all equals and i try tu use wizard and it
work.
How i make an automation to do this?

Thnaks for suggestion!

alberto





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.