dbTalk Databases Forums  

XPSMTP parameters

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


Discuss XPSMTP parameters in the microsoft.public.sqlserver.dts forum.



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

Default XPSMTP parameters - 06-13-2004 , 08:30 AM






I'm using SEM 8.0

I've installed XPSMTP from http://www.sqldev.net/xp/xpsmtp.htm and it is
working fine.

What I'd like to do now is to get the @subject parameter from a global
variable.
So I'd like to exec it like this:

exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'someuser (AT) domain (DOT) com',
@subject = ?,
@......,
@.....

When I click on the parameters button to set the parameter, it get this
error:
'Syntax error or access violation'.

Is it not possible to pass parameters dynamically to this extended stored
procedure?

Thanks,
Al



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

Default Re: XPSMTP parameters - 06-13-2004 , 08:46 AM






I am going to presume that you want to do this in an ExecuteSQL task.

The developement environment is not that sturdy sometimes and this may be
one of those times so personally I would build my SQLStatement up in an
Actve Script task and plug it in that way.

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote

Quote:
I'm using SEM 8.0

I've installed XPSMTP from http://www.sqldev.net/xp/xpsmtp.htm and it is
working fine.

What I'd like to do now is to get the @subject parameter from a global
variable.
So I'd like to exec it like this:

exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'someuser (AT) domain (DOT) com',
@subject = ?,
@......,
@.....

When I click on the parameters button to set the parameter, it get this
error:
'Syntax error or access violation'.

Is it not possible to pass parameters dynamically to this extended stored
procedure?

Thanks,
Al





Reply With Quote
  #3  
Old   
Al Cadalzo
 
Posts: n/a

Default Re: XPSMTP parameters - 06-13-2004 , 09:59 AM



Allan,

Yes, your presumption is correct. I want to do it in an ExecuteSQL task.

I like your suggestion of building it in an ActiveScript task. That's what
I'm going to do.
Wish me luck.

Thanks,
Al

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

Quote:
I am going to presume that you want to do this in an ExecuteSQL task.

The developement environment is not that sturdy sometimes and this may be
one of those times so personally I would build my SQLStatement up in an
Actve Script task and plug it in that way.

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:%23XUNXqUUEHA.3512 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I'm using SEM 8.0

I've installed XPSMTP from http://www.sqldev.net/xp/xpsmtp.htm and it is
working fine.

What I'd like to do now is to get the @subject parameter from a global
variable.
So I'd like to exec it like this:

exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'someuser (AT) domain (DOT) com',
@subject = ?,
@......,
@.....

When I click on the parameters button to set the parameter, it get this
error:
'Syntax error or access violation'.

Is it not possible to pass parameters dynamically to this extended
stored
procedure?

Thanks,
Al







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

Default Re: XPSMTP parameters - 06-13-2004 , 01:33 PM



good luck

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote

Quote:
Allan,

Yes, your presumption is correct. I want to do it in an ExecuteSQL task.

I like your suggestion of building it in an ActiveScript task. That's
what
I'm going to do.
Wish me luck.

Thanks,
Al

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23MZ15vUUEHA.716 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
I am going to presume that you want to do this in an ExecuteSQL task.

The developement environment is not that sturdy sometimes and this may
be
one of those times so personally I would build my SQLStatement up in an
Actve Script task and plug it in that way.

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:%23XUNXqUUEHA.3512 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I'm using SEM 8.0

I've installed XPSMTP from http://www.sqldev.net/xp/xpsmtp.htm and it
is
working fine.

What I'd like to do now is to get the @subject parameter from a global
variable.
So I'd like to exec it like this:

exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'someuser (AT) domain (DOT) com',
@subject = ?,
@......,
@.....

When I click on the parameters button to set the parameter, it get
this
error:
'Syntax error or access violation'.

Is it not possible to pass parameters dynamically to this extended
stored
procedure?

Thanks,
Al









Reply With Quote
  #5  
Old   
Al Cadalzo
 
Posts: n/a

Default Re: XPSMTP parameters - 06-14-2004 , 05:24 AM



Allan,

Works fine. I needed to get to the CustomTask object (instead of the task
object) in order to set the SQLStatement. I did it by going through the
DTSGlobalVariables.Parent package and then it's Tasks, and finally
Task.CustomTask.

Thanks,
Al


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

Quote:
good luck

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:Om3hacVUEHA.2988 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Allan,

Yes, your presumption is correct. I want to do it in an ExecuteSQL
task.

I like your suggestion of building it in an ActiveScript task. That's
what
I'm going to do.
Wish me luck.

Thanks,
Al

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23MZ15vUUEHA.716 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
I am going to presume that you want to do this in an ExecuteSQL task.

The developement environment is not that sturdy sometimes and this may
be
one of those times so personally I would build my SQLStatement up in
an
Actve Script task and plug it in that way.

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:%23XUNXqUUEHA.3512 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I'm using SEM 8.0

I've installed XPSMTP from http://www.sqldev.net/xp/xpsmtp.htm and
it
is
working fine.

What I'd like to do now is to get the @subject parameter from a
global
variable.
So I'd like to exec it like this:

exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'someuser (AT) domain (DOT) com',
@subject = ?,
@......,
@.....

When I click on the parameters button to set the parameter, it get
this
error:
'Syntax error or access violation'.

Is it not possible to pass parameters dynamically to this extended
stored
procedure?

Thanks,
Al











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

Default Re: XPSMTP parameters - 06-14-2004 , 11:15 AM



For reference, here is an example of using script to manipulate the SQL
statement.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote

Quote:
Allan,

Yes, your presumption is correct. I want to do it in an ExecuteSQL task.

I like your suggestion of building it in an ActiveScript task. That's
what
I'm going to do.
Wish me luck.

Thanks,
Al

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23MZ15vUUEHA.716 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
I am going to presume that you want to do this in an ExecuteSQL task.

The developement environment is not that sturdy sometimes and this may
be
one of those times so personally I would build my SQLStatement up in an
Actve Script task and plug it in that way.

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:%23XUNXqUUEHA.3512 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I'm using SEM 8.0

I've installed XPSMTP from http://www.sqldev.net/xp/xpsmtp.htm and it
is
working fine.

What I'd like to do now is to get the @subject parameter from a global
variable.
So I'd like to exec it like this:

exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'someuser (AT) domain (DOT) com',
@subject = ?,
@......,
@.....

When I click on the parameters button to set the parameter, it get
this
error:
'Syntax error or access violation'.

Is it not possible to pass parameters dynamically to this extended
stored
procedure?

Thanks,
Al









Reply With Quote
  #7  
Old   
Al Cadalzo
 
Posts: n/a

Default Re: XPSMTP parameters - 06-15-2004 , 08:50 AM



Darren,

Thanks so much for that. Your sqldts.com site is an invaluable resource.

Thanks,
Al


"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
For reference, here is an example of using script to manipulate the SQL
statement.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:Om3hacVUEHA.2988 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Allan,

Yes, your presumption is correct. I want to do it in an ExecuteSQL
task.

I like your suggestion of building it in an ActiveScript task. That's
what
I'm going to do.
Wish me luck.

Thanks,
Al

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23MZ15vUUEHA.716 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
I am going to presume that you want to do this in an ExecuteSQL task.

The developement environment is not that sturdy sometimes and this may
be
one of those times so personally I would build my SQLStatement up in
an
Actve Script task and plug it in that way.

--
--

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


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:%23XUNXqUUEHA.3512 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I'm using SEM 8.0

I've installed XPSMTP from http://www.sqldev.net/xp/xpsmtp.htm and
it
is
working fine.

What I'd like to do now is to get the @subject parameter from a
global
variable.
So I'd like to exec it like this:

exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'someuser (AT) domain (DOT) com',
@subject = ?,
@......,
@.....

When I click on the parameters button to set the parameter, it get
this
error:
'Syntax error or access violation'.

Is it not possible to pass parameters dynamically to this extended
stored
procedure?

Thanks,
Al











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.