Assigning a string with a ' in it
Posted on 2011-03-25
How can I assign the following data to $string? It has a ' in the line so I'm having trouble with it.
Target Name: s02asqlp_MSSQL_DB Target Type: Microsoft SQL Server Host Name: s02asqlp.na.ipaper.com Metric Name: type Key Name: Type of Record;Record Number Key Value: Application;3653034 TimeStamp: Mar 25, 2011 10:10:28 AM CDT Severity: Warning Message: Event generated for source (SQLSERVERAGENT) at time Fri, Mar 25, 2011, 10:08:00 AM. Details - User:Category[Job Engine]:Description[SQL Server Scheduled Job 'Log Shipping Alert Job - Restore' (0x5147AB34F8A62A4F8CF18821274B107E) - Status: Failed - Invoked on: 2011-03-25 10:08:00 - Message: The job failed. The Job was invoked by Schedule 494 (Log Shipping Alert Job - Restore). The last step to run was step 1 (Log Shipping Alert Job - Restore). ] Rule Name: DSQLDBSL_PROD_102608472 Rule Owner: DSYSMAN Metric Value: Warning : 9F351B69978130ADE0440021283CA56A : 0 : 0 : 1 : 9F351B69978130ADE0440021283CA56A