dbTalk Databases Forums  

odd problem with DTS from Excel -> SQL

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


Discuss odd problem with DTS from Excel -> SQL in the microsoft.public.sqlserver.dts forum.



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

Default odd problem with DTS from Excel -> SQL - 07-27-2006 , 09:19 AM






Hi everyone,

I have a problem with a DTS process which imports from excel to SQL. I have
tried this dts process on both SQL 2000 and SQL 2005, and they appear to
both be behaving the same odd way.

The DTS process never is able to pick up any data residing on row '1' of the
excel spreadsheet. I have to always shift all the data down one row so it
starts on row 2, then all is ok.

Would anyone know why this is so?

Many thanks
peter



Reply With Quote
  #2  
Old   
Roy Harvey
 
Posts: n/a

Default Re: odd problem with DTS from Excel -> SQL - 07-27-2006 , 09:50 AM






I have always had to have column headers as the first line. I never
found a way to avoid it, but then I never looked all that hard.

Roy

On Fri, 28 Jul 2006 00:19:15 +1000, "peter walker"
<p.walker (AT) nospam (DOT) com> wrote:

Quote:
Hi everyone,

I have a problem with a DTS process which imports from excel to SQL. I have
tried this dts process on both SQL 2000 and SQL 2005, and they appear to
both be behaving the same odd way.

The DTS process never is able to pick up any data residing on row '1' of the
excel spreadsheet. I have to always shift all the data down one row so it
starts on row 2, then all is ok.

Would anyone know why this is so?

Many thanks
peter


Reply With Quote
  #3  
Old   
Davide
 
Posts: n/a

Default Re: odd problem with DTS from Excel -> SQL - 07-27-2006 , 10:31 AM



Hello peter,

Quote:
Hi everyone,

I have a problem with a DTS process which imports from excel to SQL. I
have tried this dts process on both SQL 2000 and SQL 2005, and they
appear to both be behaving the same odd way.

The DTS process never is able to pick up any data residing on row '1'
of the excel spreadsheet. I have to always shift all the data down one
row so it starts on row 2, then all is ok.

Would anyone know why this is so?

Many thanks
peter
Before setting the datapump Transformation you should, using Diconnected
Edit, modify your MS Excel connection in such a way:

OLE-DB Properties --> Extended Properties : Set 'HDR=NO' (you should find
'HDR=YES' that is the default)

After this creae the DataPump Transformation .

Bye




Reply With Quote
  #4  
Old   
Roy Harvey
 
Posts: n/a

Default Re: odd problem with DTS from Excel -> SQL - 07-27-2006 , 10:48 AM



Great, thanks for sharing that one, I never had a clue that there were
any such settings.

Roy

On Thu, 27 Jul 2006 15:31:46 +0000 (UTC), Davide
<rossetti71 (AT) gmail (DOT) com> wrote:

Quote:
Before setting the datapump Transformation you should, using Diconnected
Edit, modify your MS Excel connection in such a way:

OLE-DB Properties --> Extended Properties : Set 'HDR=NO' (you should find
'HDR=YES' that is the default)

After this creae the DataPump Transformation .

Bye

Reply With Quote
  #5  
Old   
SP
 
Posts: n/a

Default Re: odd problem with DTS from Excel -> SQL - 07-27-2006 , 04:10 PM



Great!! Thanks for sharing, i never knew after working for so long as DBA
that you have this choice too. Good job David

SP

Reply With Quote
  #6  
Old   
peter walker
 
Posts: n/a

Default Re: odd problem with DTS from Excel -> SQL - 07-28-2006 , 05:58 AM



Thanks for the tip, much appreciated!

peter

"Davide" <rossetti71 (AT) gmail (DOT) com> wrote

Quote:
Hello peter,

Hi everyone,

I have a problem with a DTS process which imports from excel to SQL. I
have tried this dts process on both SQL 2000 and SQL 2005, and they
appear to both be behaving the same odd way.

The DTS process never is able to pick up any data residing on row '1'
of the excel spreadsheet. I have to always shift all the data down one
row so it starts on row 2, then all is ok.

Would anyone know why this is so?

Many thanks
peter

Before setting the datapump Transformation you should, using Diconnected
Edit, modify your MS Excel connection in such a way:

OLE-DB Properties --> Extended Properties : Set 'HDR=NO' (you should
find 'HDR=YES' that is the default)

After this creae the DataPump Transformation .

Bye





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.