Viewing 15 posts - 1,786 through 1,800 (of 3,221 total)
I have to totally disagree with the following from the article:
Database development has a subtle difference from application-development. It is not as easy to fake your completion dates, i.e. using...
November 24, 2014 at 3:48 am
This is almost as important to developers as it is to DBAs as this can lead to developers creating issues as what they are developing against isn't what they will...
November 24, 2014 at 2:58 am
$_ is a DataRow as you previously highlighted. A DataRow is made up of data items. You can access an individual item using the index operator []. There are two...
November 21, 2014 at 5:36 am
So what do you get from:
Write-Output $_[0].ToString()
November 21, 2014 at 5:07 am
I think that you need to know what you are dealing with i.e. what is $_?
Instead of immediately using the following:
Remove-Item $_-Force
Perhaps you should be doing the following:
Write-Output $_.GetType().ToString()
Then you...
November 21, 2014 at 4:38 am
No.
Some of these things have come in with 2012 and I haven't developed much code on that. Certainly none on 2014.
November 21, 2014 at 1:54 am
Charles Kincaid (11/20/2014)
November 21, 2014 at 1:47 am
Steve Jones - SSC Editor (11/20/2014)
Gary Varga (11/20/2014)
November 20, 2014 at 12:34 pm
All true, Ladies and Gentlemen. All true.
PS Mrs Varga ensures that we do all holiday. I have to go as who else would carry the luggage 😉
November 20, 2014 at 12:28 pm
Gazareth (11/20/2014)
Should$result | foreach $result {remove-item $result.fullname -force}
be
$result | foreach {remove-item $result.fullname -force}
or
$result | foreach {remove-item $_.fullname -force}
The latter. The former doesn't use the current object in the loop i.e....
November 20, 2014 at 10:00 am
You need to pipe through the result to the for each command.
I am sorry but I have little time this afternoon but this might help:
$database.ExecuteWithResults().Tables[0].Rows | ForEach-Object { Remove-Item...
November 20, 2014 at 9:58 am
Ed Wagner (11/20/2014)
November 20, 2014 at 6:09 am
erwin.oosterhoorn (11/20/2014)
November 20, 2014 at 4:49 am
GilaMonster (11/20/2014)
November 20, 2014 at 2:54 am
Charles Kincaid (11/19/2014)
November 20, 2014 at 2:50 am
Viewing 15 posts - 1,786 through 1,800 (of 3,221 total)