Viewing 6 posts - 1 through 6 (of 6 total)
Hell again,
1.) I typed the following Powershell script in my job step:
$a = Get-ChildItem "E:\Backups\MaintenancePlanReports" -recurse
foreach($x in $a)
{
$y = ((Get-Date) - $x.CreationTime).Days
if ($y -gt 14 -and $x.PsISContainer -ne $True)
{$x.Delete()}
}
2.) I...
November 14, 2013 at 2:06 pm
I would like to thank each one of you for your replies and suggestions.
No, this is not a test question. We have jobs that are supposed to delete files...
November 14, 2013 at 7:57 am
I am sorry, but I could not find enough information on what I am trying to accomplish. Here is what I tried, but without success:
EXEC master..xp_cmdshell 'del C:\file.txt'
November 8, 2013 at 2:14 pm
Thank you for your reply and for your suggestion.
I will try and see what this suggestion results to.
Thanks again.
November 8, 2013 at 1:53 pm
I was wondering whether someone could help me with creating a loop to iterate through a table (sys.syslogins) and
change the default databases to a different database for all...
September 26, 2013 at 3:33 pm
Thank you very much for all those you replied back to my request. I will try your suggestions.
MK
September 26, 2013 at 1:17 am
Viewing 6 posts - 1 through 6 (of 6 total)