dbTalk Databases Forums  

Can I Pass INI value to DTS Global Variable ?

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


Discuss Can I Pass INI value to DTS Global Variable ? in the microsoft.public.sqlserver.dts forum.



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

Default Can I Pass INI value to DTS Global Variable ? - 11-11-2004 , 09:08 AM






Hi DTS gurus,

I have two question :

1) How can I pass INI value to DTS Global Variable ?
Can I use Dynamic Properties Task ?

2) I use Exedute SQL Task to exec SP, but how can I get the Error message if
error happen in SP execution ?

Thank you for your help,
Trist



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

Default Re: Can I Pass INI value to DTS Global Variable ? - 11-11-2004 , 06:44 PM






1 - You can use the Dynamic Properties Taks to do this.

2 - Use the DTS logs, you cannot capture it reliably inside DTS. Check you
have patched your machines as well. See this KB for a fix included in the
latest security patch

FIX: A DTS Package That Uses Global Variables Ignores Error Message Raised
by RAISERROR
(http://support.microsoft.com/default...b;en-us;815115)



--
Darren Green
http://www.sqldts.com

"tristant" <krislioe (AT) cbn (DOT) net.id> wrote

Quote:
Hi DTS gurus,

I have two question :

1) How can I pass INI value to DTS Global Variable ?
Can I use Dynamic Properties Task ?

2) I use Exedute SQL Task to exec SP, but how can I get the Error message
if
error happen in SP execution ?

Thank you for your help,
Trist





Reply With Quote
  #3  
Old   
Russ Perry Jr
 
Posts: n/a

Default Re: Can I Pass INI value to DTS Global Variable ? - 11-12-2004 , 12:46 PM



"tristant" <krislioe (AT) cbn (DOT) net.id> wrote:
Quote:
Hi DTS gurus,
Heh, I'm no guru...

Quote:
I have two question :

1) How can I pass INI value to DTS Global Variable ?
Absolutely!

Quote:
Can I use Dynamic Properties Task ?
That's how I do it. I think that might be the only way TO do it,
since
I believe that's the only way to get to an INI file without doing some
ugly kludge.

Quote:
2) I use Exedute SQL Task to exec SP, but how can I get the Error message if
error happen in SP execution ?
That one I'm not entirely sure about... If nothing else, I THINK you
can
rewrite the proc to use an output parameter rather than "return"-ing
the error code, and in the Task, use a "?" for a parameter, which you
could then send where you needed it to go.


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.