dbTalk Databases Forums  

DTS import from xls-how to identify a particular cell

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


Discuss DTS import from xls-how to identify a particular cell in the microsoft.public.sqlserver.dts forum.



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

Default DTS import from xls-how to identify a particular cell - 02-21-2005 , 05:51 AM






Hi,
I wish to import data from XLS into SQL Server using DTS. However, i want
only a particular cell mapped to some column in a table in database. For
example, C(9,9) of the XLS should get mapped to Column X in Table Y.
Is it possible to do this in DTS? Or do i need to create a staging XLS or
staging table?

Thanks,

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

Default Re: DTS import from xls-how to identify a particular cell - 02-21-2005 , 01:19 PM






Technically most things are possible.

DTS Sees data so when DTS in the DataPump task opens up an XL
Spreadsheet it can see named ranges and workbooks.

As for taking a specific cell? Hmmm, You could do it but it would have
to be a named range and that makes it a single table of 1 cell. It may
be easier to use the Excel object model to read the value of that cell
into a global variable and use that in a Query to insert into a table



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

Quote:
Hi,
I wish to import data from XLS into SQL Server using DTS. However, i want

only a particular cell mapped to some column in a table in database. For

example, C(9,9) of the XLS should get mapped to Column X in Table Y.
Is it possible to do this in DTS? Or do i need to create a staging XLS or

staging table?

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.