dbTalk Databases Forums  

connection to excel file fails

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


Discuss connection to excel file fails in the microsoft.public.sqlserver.dts forum.



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

Default connection to excel file fails - 02-15-2005 , 03:50 AM






Hi eb
Seems like some funny credentials problem(?):
I am trying to connect and load an excel sheet in to a sql server table.
Executing the dts package directly works just fine but running the same
package as scheduled job fails.
The error message says - either the excel file is opened exclusivly by
another user or this user does not have credentials
necessary to open the excel file.
Since i can open that file when executing the dts directly the first option
(file is locked for further readers) is not likely.
But the second one does not make sense also because the same user is running
both sql server, sql server agent and is also the owner
of that dts.

I am using sql server 2000 sp3a on w2k server.

Any idea how to bypass this problem,if not solve it, will be appriciatit!!

TIA

Rea



Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: connection to excel file fails - 02-15-2005 , 08:48 AM






Rea,

Open task manager to see in Processes tab whether you have a run away Excel
on the background. If you do, kill it.

Ilya

"Rea Peleg" <rea_p (AT) afek (DOT) co.il> wrote

Quote:
Hi eb
Seems like some funny credentials problem(?):
I am trying to connect and load an excel sheet in to a sql server table.
Executing the dts package directly works just fine but running the same
package as scheduled job fails.
The error message says - either the excel file is opened exclusivly by
another user or this user does not have credentials
necessary to open the excel file.
Since i can open that file when executing the dts directly the first
option
(file is locked for further readers) is not likely.
But the second one does not make sense also because the same user is
running
both sql server, sql server agent and is also the owner
of that dts.

I am using sql server 2000 sp3a on w2k server.

Any idea how to bypass this problem,if not solve it, will be appriciatit!!

TIA

Rea





Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: connection to excel file fails - 02-15-2005 , 09:54 AM



And if you schedule OLE automation fo Excel, also schedule a kill excel.exe
job to keep you server clean.


"Ilya Margolin" <ilya_no_spam_ (AT) unapen (DOT) com> wrote

Quote:
Rea,

Open task manager to see in Processes tab whether you have a run away
Excel
on the background. If you do, kill it.

Ilya

"Rea Peleg" <rea_p (AT) afek (DOT) co.il> wrote in message
news:O86Q4O0EFHA.3636 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Hi eb
Seems like some funny credentials problem(?):
I am trying to connect and load an excel sheet in to a sql server table.
Executing the dts package directly works just fine but running the same
package as scheduled job fails.
The error message says - either the excel file is opened exclusivly by
another user or this user does not have credentials
necessary to open the excel file.
Since i can open that file when executing the dts directly the first
option
(file is locked for further readers) is not likely.
But the second one does not make sense also because the same user is
running
both sql server, sql server agent and is also the owner
of that dts.

I am using sql server 2000 sp3a on w2k server.

Any idea how to bypass this problem,if not solve it, will be
appriciatit!!

TIA

Rea







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.