Forum Replies Created

Viewing 15 posts - 46 through 60 (of 94 total)

  • RE: Active X Script help please

    Hi Russel,

    I am back again. I was on vacation these days so couldnt check your message. I tried giving

    if DTSGlobalVariables.Parent.Tasks("DTSTask_DTSDataPumpTask_2").CustomTask.RowsComplete = 0

    before but it didnt work for me. Can you please help...

  • RE: Active X Script help please

    The task should not run when the number of errored records is zero. if there are any errored records it should send to the excel and then send an email...

  • RE: Active X Script help please

    Hi i am back again. The active x script works fine but a problem here.

    Function Main()

    if DTSGlobalVariables.Parent.Tasks("DTSTask_DTSDataPumpTask_2").CustomTask.RowsComplete < 0 then

    ' 0 or some other threshold

      Main = DTSStepScriptResult_DontExecuteTask

    else

      Main = DTSStepScriptResult_ExecuteTask

    end if

    end function

    what...

  • RE: Active X Script help please

    if anyone can give me a solution for xp_sendmail that would be great. I didnt use xp_sendmail till now and this is the first time i tested with it. Just...

  • RE: Active X Script help please

    I just modified my DTSPackage and the activexscript worked perfect with out failing the package.

    sorry its my fault; didnt make the connections properly.

    Thats really good. Thanks a lot RLoski...

  • RE: Active X Script help please

    a typo mistake

    but why is it working if i omit the attachments. i am getting the email. does it effect anything if i...

  • RE: Active X Script help please

    yes its working if i omit the last line. is my query correct?

  • RE: Active X Script help please

    Hi sorry to get back again. but i see a problem here. In my dts package i have few other steps that needs to be performed after i send the...

  • RE: Active X Script help please

    Hi Luciano,

    The other solution worked but just curios to know as to why the xpsend_mail errored out when i run with attachments? any idea. Did i mention anything wrong in...

  • RE: Active X Script help please

    the step executed successfully. The name should be DTStask_DTSDataPumpTask_2. Thanks a lot for your help.

  • RE: Active X Script help please

    yes the file to be attached is present.

    This is the code i am using

    EXEC master.dbo.xp_sendmail @recipients = 'xxx@xxx.com',

       @subject = 'Error Report',

       @message = 'Please check the Errors in...

  • RE: Active X Script help please

    Thanks for the quick response. sorry to bother but can you see this code

    Function Main()

    if DTSGlobalVariables.Parent.Tasks("DTSStep_DTSDataPumpTask_2").CustomTask.RowsComplete < 20 then

    ' 1 or some other threshold

      Main = DTSStepScriptResult_DontExecuteTask

    else

      Main =...

  • RE: Active X Script help please

    Hi

    I tried both the options, the first one is giving an error when i include the attachment in the xp_sendmail

    The second option is giving me the following error.

    Error Source...

  • RE: Active X Script help please

    Thank you so much for the replies. I will try those.

     

    Thanks again

  • RE: SQL Agent mail not sending the email

    The mail profile in sql agent properties under the general tab is selected correctly.

    I saw few issues hope this helps:

    I logged into that server in which i am finding issues...

Viewing 15 posts - 46 through 60 (of 94 total)