dbTalk Databases Forums  

Excel - named ranges

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


Discuss Excel - named ranges in the microsoft.public.sqlserver.dts forum.



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

Default Excel - named ranges - 12-21-2004 , 10:11 AM






SQL 2K - DTS

I got a packge to load from Excel sheet to database table. This Excel file
got many sheets and I have to just read from one of the sheet BUT it is
hidden.
Any links or tips for a VB script to create a name range for one of the
sheet.

Thanks
Jeff



Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: Excel - named ranges - 12-21-2004 , 01:24 PM






Hi

I am not sure about the hidden sheet, buit this may help
http://www.sqldts.com/default.aspx?243

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

Quote:
SQL 2K - DTS

I got a packge to load from Excel sheet to database table. This Excel file
got many sheets and I have to just read from one of the sheet BUT it is
hidden.
Any links or tips for a VB script to create a name range for one of the
sheet.

Thanks
Jeff




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

Default Re: Excel - named ranges - 12-21-2004 , 01:29 PM



Do you know the name of the named range/worksheet?

If you do then you can query it like this

SELECT [Sheet1$].*
FROM [Sheet1$]



--



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 2K - DTS

I got a packge to load from Excel sheet to database table. This Excel file
got many sheets and I have to just read from one of the sheet BUT it is
hidden.
Any links or tips for a VB script to create a name range for one of the
sheet.

Thanks
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.