dbTalk Databases Forums  

Set objFolder = myOlNameSpace.Folders("Public Folders")

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


Discuss Set objFolder = myOlNameSpace.Folders("Public Folders") in the microsoft.public.sqlserver.dts forum.



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

Default Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-05-2004 , 01:42 PM






Code works in the DTS designer, but fails when run as a job.
Set objFolder = myOlNameSpace.Folders("Public Folders")
Thanks
BJ


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

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-05-2004 , 01:54 PM






This is usually down to permissions and account differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


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

Quote:
Code works in the DTS designer, but fails when run as a job.
Set objFolder = myOlNameSpace.Folders("Public Folders")
Thanks
BJ




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

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-05-2004 , 03:11 PM





Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

Quote:
-----Original Message-----
This is usually down to permissions and account differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when run as a job.
Set objFolder = myOlNameSpace.Folders("Public Folders")
Thanks
BJ



.


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

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-05-2004 , 03:27 PM



What is the error you get?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


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

Quote:

Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

-----Original Message-----
This is usually down to permissions and account differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when run as a job.
Set objFolder = myOlNameSpace.Folders("Public Folders")
Thanks
BJ



.




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

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-05-2004 , 04:04 PM





Executed as user: hra\sqlagent. ...ing... DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnError:
DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 4096 Error
Source= Microsoft Outlook Error Description: Could not
complete the operation because the service provider does
not support it. Error on Line 51 Error source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 4500
Error Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 4096
Error Source= Microsoft Outlook Error Description:
Could not complete the operation because the service
provider does not support it. Error on Line 51
Error source: Microsoft Data Transformation Services
(DTS) Package Help file: sqldts80.hlp Help
context: 4500 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution
.. The step failed.
Quote:
-----Original Message-----
What is the error you get?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl...


Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

-----Original Message-----
This is usually down to permissions and account
differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when run as
a job.
Set objFolder = myOlNameSpace.Folders("Public Folders")
Thanks
BJ



.



.


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

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-06-2004 , 01:07 AM



Hmmmm

This may have to do with Outlook not having a logged on user at the time.
From what I read of Outlook and running unattended most people swap this out
and use CDO.

Can you do this?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


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

Quote:

Executed as user: hra\sqlagent. ...ing... DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnError:
DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 4096 Error
Source= Microsoft Outlook Error Description: Could not
complete the operation because the service provider does
not support it. Error on Line 51 Error source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 4500
Error Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 4096
Error Source= Microsoft Outlook Error Description:
Could not complete the operation because the service
provider does not support it. Error on Line 51
Error source: Microsoft Data Transformation Services
(DTS) Package Help file: sqldts80.hlp Help
context: 4500 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution
. The step failed.
-----Original Message-----
What is the error you get?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl...


Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

-----Original Message-----
This is usually down to permissions and account
differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when run as
a job.
Set objFolder = myOlNameSpace.Folders("Public Folders")
Thanks
BJ



.



.




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

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-06-2004 , 08:46 AM



Never used CDO.
I will look into adding some code to log onto OUTLOOK from
the job.

Thanks

Quote:
-----Original Message-----
Hmmmm

This may have to do with Outlook not having a logged on
user at the time.
From what I read of Outlook and running unattended most
people swap this out
and use CDO.

Can you do this?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl...


Executed as user: hra\sqlagent. ...ing... DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnError:
DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 4096 Error
Source= Microsoft Outlook Error Description: Could not
complete the operation because the service provider does
not support it. Error on Line 51 Error source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 4500
Error Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 4096
Error Source= Microsoft Outlook Error Description:
Could not complete the operation because the service
provider does not support it. Error on Line 51
Error source: Microsoft Data Transformation Services
(DTS) Package Help file: sqldts80.hlp Help
context: 4500 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution
. The step failed.
-----Original Message-----
What is the error you get?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl...


Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

-----Original Message-----
This is usually down to permissions and account
differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when run as
a job.
Set objFolder = myOlNameSpace.Folders("Public
Folders")
Thanks
BJ



.



.



.


Reply With Quote
  #8  
Old   
Jeff Block
 
Posts: n/a

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-06-2004 , 02:46 PM



MUCH better off using CDO:

http://msdn.microsoft.com/library/de...l/cDOpart1.asp

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

Quote:
Never used CDO.
I will look into adding some code to log onto OUTLOOK from
the job.

Thanks

-----Original Message-----
Hmmmm

This may have to do with Outlook not having a logged on
user at the time.
From what I read of Outlook and running unattended most
people swap this out
and use CDO.

Can you do this?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl...


Executed as user: hra\sqlagent. ...ing... DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnError:
DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 4096 Error
Source= Microsoft Outlook Error Description: Could not
complete the operation because the service provider does
not support it. Error on Line 51 Error source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 4500
Error Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 4096
Error Source= Microsoft Outlook Error Description:
Could not complete the operation because the service
provider does not support it. Error on Line 51
Error source: Microsoft Data Transformation Services
(DTS) Package Help file: sqldts80.hlp Help
context: 4500 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution
. The step failed.
-----Original Message-----
What is the error you get?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl...


Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

-----Original Message-----
This is usually down to permissions and account
differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when run as
a job.
Set objFolder = myOlNameSpace.Folders("Public
Folders")
Thanks
BJ



.



.



.




Reply With Quote
  #9  
Old   
Jeff Block
 
Posts: n/a

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-06-2004 , 02:48 PM



actually, correcting myself, CDONTS would be more appropiate
"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Never used CDO.
I will look into adding some code to log onto OUTLOOK from
the job.

Thanks

-----Original Message-----
Hmmmm

This may have to do with Outlook not having a logged on
user at the time.
From what I read of Outlook and running unattended most
people swap this out
and use CDO.

Can you do this?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl...


Executed as user: hra\sqlagent. ...ing... DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnError:
DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 4096 Error
Source= Microsoft Outlook Error Description: Could not
complete the operation because the service provider does
not support it. Error on Line 51 Error source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 4500
Error Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 4096
Error Source= Microsoft Outlook Error Description:
Could not complete the operation because the service
provider does not support it. Error on Line 51
Error source: Microsoft Data Transformation Services
(DTS) Package Help file: sqldts80.hlp Help
context: 4500 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution
. The step failed.
-----Original Message-----
What is the error you get?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl...


Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

-----Original Message-----
This is usually down to permissions and account
differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when run as
a job.
Set objFolder = myOlNameSpace.Folders("Public
Folders")
Thanks
BJ



.



.



.




Reply With Quote
  #10  
Old   
BJ
 
Posts: n/a

Default Re: Set objFolder = myOlNameSpace.Folders("Public Folders") - 02-09-2004 , 01:12 PM



Thanks!!!
I don't have any experience with CDONTS. I will look into it.

BJ
Quote:
-----Original Message-----
actually, correcting myself, CDONTS would be more appropiate
"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:bde901c3ecc0$02d75bd0$a501280a (AT) phx (DOT) gbl...
Never used CDO.
I will look into adding some code to log onto OUTLOOK from
the job.

Thanks

-----Original Message-----
Hmmmm

This may have to do with Outlook not having a logged on
user at the time.
From what I read of Outlook and running unattended most
people swap this out
and use CDO.

Can you do this?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl...


Executed as user: hra\sqlagent. ...ing... DTSRun
OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnError:
DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 4096 Error
Source= Microsoft Outlook Error Description: Could not
complete the operation because the service provider does
not support it. Error on Line 51 Error
source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp Help context: 4500
Error Detail Records: Error: -2147220482
(800403FE);
Provider Error: 0 (0) Error string: Error
Code: 4096
Error Source= Microsoft Outlook Error Description:
Could not complete the operation because the service
provider does not support it. Error on Line 51
Error source: Microsoft Data Transformation Services
(DTS) Package Help file: sqldts80.hlp Help
context: 4500 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 DTSRun: Package
execution
. The step failed.
-----Original Message-----
What is the error you get?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl...


Alan
I logged onto the sevrer using the account.
Open outlook to public folders.
Also ran the job in the DTS designer OK.
Ran as a job an it fails.

-----Original Message-----
This is usually down to permissions and account
differences.

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server
Consultancy.
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


"BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl...
Code works in the DTS designer, but fails when
run as
a job.
Set objFolder = myOlNameSpace.Folders("Public
Folders")
Thanks
BJ



.



.



.



.


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.