dbTalk Databases Forums  

ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT

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


Discuss ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT in the microsoft.public.sqlserver.dts forum.



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

Default ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 08:52 AM






I am using an Active X Script task to instantiate an Excel object using
createobject function and it works fine if i run the package manually from
my machine as excel is installed on my machine and DTS runs from my machine
and not from the server but when i try to run the DTS from the SQL Server
machine by logging into the server, it fails because office applications are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where excel is
installed and still it doesnt work..Is that a possibility ? Do i need to run
any DCOMCNFG utility on the machine from where i am trying to instantiate to
add the SQL Server services account..Please let me know..

Thanks,



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

Default Re: ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 09:08 AM






AFAIK Excel would have to be installed local to the client.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote

Quote:
I am using an Active X Script task to instantiate an Excel object using
createobject function and it works fine if i run the package manually from
my machine as excel is installed on my machine and DTS runs from my
machine
and not from the server but when i try to run the DTS from the SQL Server
machine by logging into the server, it fails because office applications
are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where excel
is
installed and still it doesnt work..Is that a possibility ? Do i need to
run
any DCOMCNFG utility on the machine from where i am trying to instantiate
to
add the SQL Server services account..Please let me know..

Thanks,





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

Default Re: ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 09:21 AM



Alan,
Thanks for your reply..I am not understanding what you are trying to say..

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

Quote:
AFAIK Excel would have to be installed local to the client.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:OKoA8tTVEHA.3596 (AT) tk2msftngp13 (DOT) phx.gbl...
I am using an Active X Script task to instantiate an Excel object using
createobject function and it works fine if i run the package manually
from
my machine as excel is installed on my machine and DTS runs from my
machine
and not from the server but when i try to run the DTS from the SQL
Server
machine by logging into the server, it fails because office applications
are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where excel
is
installed and still it doesnt work..Is that a possibility ? Do i need to
run
any DCOMCNFG utility on the machine from where i am trying to
instantiate
to
add the SQL Server services account..Please let me know..

Thanks,







Reply With Quote
  #4  
Old   
kneel
 
Posts: n/a

Default Re: ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 09:28 AM



So, there is no way you can instantiate excel object from a different
machine..
Thanks,
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
AFAIK Excel would have to be installed local to the client.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:OKoA8tTVEHA.3596 (AT) tk2msftngp13 (DOT) phx.gbl...
I am using an Active X Script task to instantiate an Excel object using
createobject function and it works fine if i run the package manually
from
my machine as excel is installed on my machine and DTS runs from my
machine
and not from the server but when i try to run the DTS from the SQL
Server
machine by logging into the server, it fails because office applications
are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where excel
is
installed and still it doesnt work..Is that a possibility ? Do i need to
run
any DCOMCNFG utility on the machine from where i am trying to
instantiate
to
add the SQL Server services account..Please let me know..

Thanks,







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

Default Re: ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 09:38 AM



I am sying that if you want to use Excel programmatically then it must be
local to the PC doing the package execution.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote

Quote:
Alan,
Thanks for your reply..I am not understanding what you are trying to
say..

Thanks,
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23IH9ezTVEHA.2520 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
AFAIK Excel would have to be installed local to the client.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:OKoA8tTVEHA.3596 (AT) tk2msftngp13 (DOT) phx.gbl...
I am using an Active X Script task to instantiate an Excel object
using
createobject function and it works fine if i run the package manually
from
my machine as excel is installed on my machine and DTS runs from my
machine
and not from the server but when i try to run the DTS from the SQL
Server
machine by logging into the server, it fails because office
applications
are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where
excel
is
installed and still it doesnt work..Is that a possibility ? Do i need
to
run
any DCOMCNFG utility on the machine from where i am trying to
instantiate
to
add the SQL Server services account..Please let me know..

Thanks,









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

Default Re: ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 09:47 AM



Not that I know of. Maybe someone else has done this but I personally have
not and never would.

MS do not support Office automation in a Server Side unattended environment
either.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote

Quote:
So, there is no way you can instantiate excel object from a different
machine..
Thanks,
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23IH9ezTVEHA.2520 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
AFAIK Excel would have to be installed local to the client.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:OKoA8tTVEHA.3596 (AT) tk2msftngp13 (DOT) phx.gbl...
I am using an Active X Script task to instantiate an Excel object
using
createobject function and it works fine if i run the package manually
from
my machine as excel is installed on my machine and DTS runs from my
machine
and not from the server but when i try to run the DTS from the SQL
Server
machine by logging into the server, it fails because office
applications
are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where
excel
is
installed and still it doesnt work..Is that a possibility ? Do i need
to
run
any DCOMCNFG utility on the machine from where i am trying to
instantiate
to
add the SQL Server services account..Please let me know..

Thanks,









Reply With Quote
  #7  
Old   
kneel
 
Posts: n/a

Default Re: ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 10:05 AM



Thanks Alan..I thought the same..But i just wanted to confirm...But also i
thought it doesnt make any sense to have office applications installed on a
dedicated SQL Server box to instantiate any object...
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Not that I know of. Maybe someone else has done this but I personally
have
not and never would.

MS do not support Office automation in a Server Side unattended
environment
either.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:uTdDRCUVEHA.2692 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
So, there is no way you can instantiate excel object from a different
machine..
Thanks,
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23IH9ezTVEHA.2520 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
AFAIK Excel would have to be installed local to the client.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:OKoA8tTVEHA.3596 (AT) tk2msftngp13 (DOT) phx.gbl...
I am using an Active X Script task to instantiate an Excel object
using
createobject function and it works fine if i run the package
manually
from
my machine as excel is installed on my machine and DTS runs from my
machine
and not from the server but when i try to run the DTS from the SQL
Server
machine by logging into the server, it fails because office
applications
are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where
excel
is
installed and still it doesnt work..Is that a possibility ? Do i
need
to
run
any DCOMCNFG utility on the machine from where i am trying to
instantiate
to
add the SQL Server services account..Please let me know..

Thanks,











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

Default Re: ACTIVE X SCRIPT INSIDE DTS TO INSTANTIATE AN EXCEL OBJECT - 06-18-2004 , 11:03 AM



Yep which is why I keep away from it where possible

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote

Quote:
Thanks Alan..I thought the same..But i just wanted to confirm...But also i
thought it doesnt make any sense to have office applications installed on
a
dedicated SQL Server box to instantiate any object...
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:eYMYmJUVEHA.2752 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Not that I know of. Maybe someone else has done this but I personally
have
not and never would.

MS do not support Office automation in a Server Side unattended
environment
either.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:uTdDRCUVEHA.2692 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
So, there is no way you can instantiate excel object from a different
machine..
Thanks,
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23IH9ezTVEHA.2520 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
AFAIK Excel would have to be installed local to the client.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"kneel" <kvatsan (AT) comcast (DOT) net> wrote in message
news:OKoA8tTVEHA.3596 (AT) tk2msftngp13 (DOT) phx.gbl...
I am using an Active X Script task to instantiate an Excel object
using
createobject function and it works fine if i run the package
manually
from
my machine as excel is installed on my machine and DTS runs from
my
machine
and not from the server but when i try to run the DTS from the SQL
Server
machine by logging into the server, it fails because office
applications
are
not installed on a dedicated SQL Server BOX..I tried using the
CREATEOBJECT's 2nd parameter to instantiate excel from a box where
excel
is
installed and still it doesnt work..Is that a possibility ? Do i
need
to
run
any DCOMCNFG utility on the machine from where i am trying to
instantiate
to
add the SQL Server services account..Please let me know..

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.