Forum Replies Created

Viewing 15 posts - 196 through 210 (of 348 total)

  • RE: Powershell email throwing error

    I tried that already.Did not work

    PS H:\> $File = gci \\abcd\efgh\ijkl | select -last 1
    PS H:\> $From = "abcd@gmail.com"
    PS H:\> $To = "defg@gmail.com"
    PS H:\>...

  • RE: Powershell email throwing error

    It did not work

    $File = "gci \\abcd\efgh\ijkl | select -last 1"
    $From = "abcd@gmail.com"
    $To = "efgh@gmail.com"
    $Attachment = $File
    $Subject = "Here's the Email Subject"
    $Body =...

  • RE: Powershell email throwing error

    I tried that..it does not work.
    It starts searching from the directory I am running the code from.
    Send-MailMessage : Could not find file 'H:\files_06-04-2018_02-40-08.html'

    My files exists in...

  • RE: Color Coding

    I have update my query.
    =iif((Fields!DBName.Value <> "tempdb") OR Fields!State_desc.Value = "ONLINE"
    AND IsNothing(Fields!Physical_device_name.Value) AND DateAdd("d", 1, Fields!Last_db_backup_date) < Now(),"Orange", "LightGreen")
    Can you please check if the reasoning and query...

  • RE: Color code

    Joe Torre - Wednesday, April 18, 2018 12:17 PM

    Please have a look here.
    You my need to nest you IIF

    Iif(Fields!DBName.Value...

  • RE: Export AD into text

    Noted.

    I was able to export  the AD's  this way
    Get-ADUser -Filter *|select GivenName,Name,Enabled,SID | out-file output.txt

    How do I remove the headers and make this file into...

  • RE: email with attachment powershell

    This piece of code works perfectly well when I run in powershell-sends an email along with the attachment.But when I schedule it in a task scheduler it does send an...

  • RE: SSRSRowCounting

    pietlinden - Thursday, June 22, 2017 8:55 AM

    Can't speak for anyone else, but without data and maybe a screenshot of your report,...

  • RE: backups

    Eirikur Eiriksson - Thursday, June 15, 2017 2:00 AM

    If the database's backup is missing then you would need to RIGHT OUTER JOIN...

  • RE: ServerSizes

    I need server size difference for any 2 dates which are 30 days apart.
    The query posted is giving me an empty set.

  • RE: DiskSpace

    The code works.The issues was with the task scheduler.

    How do I cc in the above code.Right now I can only send the mail to 1 recipient.I would like ...

  • RE: SQL code for the below 3

    Mr. Kapsicum - Friday, March 24, 2017 4:10 AM

    sqlnewbie17 - Friday, March 24, 2017 3:33 AM

    March 24, 2017 at 11:13 am

    #1934838

  • RE: SQL code for the below

    I need this to work across all SQLVersions

  • RE: SQL code for the below

    Thom A - Thursday, March 16, 2017 3:46 AM

    Without consumable Sample data or DDL, here's something to get off your feet:
    [code...

  • RE: SQL Query

    How I do find all the jobs which have failed today and the failed job when they ran the last time they were scheduled.

    Ex 1:All jobs if scheduled today...

Viewing 15 posts - 196 through 210 (of 348 total)