dbTalk Databases Forums  

DTS - Excel file path from a table

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


Discuss DTS - Excel file path from a table in the microsoft.public.sqlserver.dts forum.



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

Default DTS - Excel file path from a table - 12-16-2004 , 03:13 PM






SQL 2000

I got a table with file names and path for the Excel files to be loaded into
a sql table.
My plan is to use DTS and global variable to assign the path and file name
and use that as the source for the data-pump.

Any thoughts or sample code to achieve this ??

Thanks In Advance
Jeff



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

Default Re: DTS - Excel file path from a table - 12-16-2004 , 03:28 PM






You would probably want to have a look at these two articles then.

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"MS User" <sqlman (AT) sql (DOT) com> wrote

Quote:
SQL 2000

I got a table with file names and path for the Excel files to be loaded
into a sql table.
My plan is to use DTS and global variable to assign the path and file name
and use that as the source for the data-pump.

Any thoughts or sample code to achieve this ??

Thanks In Advance
Jeff





Reply With Quote
  #3  
Old   
MS User
 
Posts: n/a

Default Re: DTS - Excel file path from a table - 12-16-2004 , 05:05 PM



Thanks Allan

My Excel sheet contains different sheets and I just want to read one sheet
to load into table. Thoughts/Ideas ??

Thanks


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
You would probably want to have a look at these two articles then.

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"MS User" <sqlman (AT) sql (DOT) com> wrote in message
news:u$ZIoQ74EHA.924 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
SQL 2000

I got a table with file names and path for the Excel files to be loaded
into a sql table.
My plan is to use DTS and global variable to assign the path and file
name and use that as the source for the data-pump.

Any thoughts or sample code to achieve this ??

Thanks In Advance
Jeff







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

Default Re: DTS - Excel file path from a table - 12-17-2004 , 12:37 AM



The worksheets/named ranges within a workbook will be exposed to DTS as
table objects.
So this will give you the ability to change the DataSource property of the
Excel workbook and the SourceObjectName of the DataPump task.



--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"MS User" <sqlman (AT) sql (DOT) com> wrote

Quote:
Thanks Allan

My Excel sheet contains different sheets and I just want to read one sheet
to load into table. Thoughts/Ideas ??

Thanks


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eAuNYX74EHA.828 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
You would probably want to have a look at these two articles then.

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"MS User" <sqlman (AT) sql (DOT) com> wrote in message
news:u$ZIoQ74EHA.924 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
SQL 2000

I got a table with file names and path for the Excel files to be loaded
into a sql table.
My plan is to use DTS and global variable to assign the path and file
name and use that as the source for the data-pump.

Any thoughts or sample code to achieve this ??

Thanks In Advance
Jeff









Reply With Quote
  #5  
Old   
MS User
 
Posts: n/a

Default Re: DTS - Excel file path from a table - 12-17-2004 , 09:41 AM



Thanks Allan. That did it.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
The worksheets/named ranges within a workbook will be exposed to DTS as
table objects.
So this will give you the ability to change the DataSource property of the
Excel workbook and the SourceObjectName of the DataPump task.



--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"MS User" <sqlman (AT) sql (DOT) com> wrote in message
news:O%23LVGP84EHA.2540 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Thanks Allan

My Excel sheet contains different sheets and I just want to read one
sheet to load into table. Thoughts/Ideas ??

Thanks


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eAuNYX74EHA.828 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
You would probably want to have a look at these two articles then.

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"MS User" <sqlman (AT) sql (DOT) com> wrote in message
news:u$ZIoQ74EHA.924 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
SQL 2000

I got a table with file names and path for the Excel files to be loaded
into a sql table.
My plan is to use DTS and global variable to assign the path and file
name and use that as the source for the data-pump.

Any thoughts or sample code to achieve this ??

Thanks In Advance
Jeff











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.