SSIS and Script Component

  • Does anyone know how to read from the event viewer logs of the server with a script component that is inside a foreach loop 

    I cant seem to get the code working on the loop through different servers 
    What is the syntax on C#

    EventLog myEvenLog = new EventLog("System", this.Connections.ServersLoop.ConnectionString);

    serversloop is the connection manager my connection that is theone that is used for the loop 

    Any help will be much appreciated

  • in SSIS of course

  • Do you intend to do this in a data flow, or did you mean script task?


  • I passed it as a Read only variable and it worked thank you for your reply

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply