Viewing 15 posts - 1 through 15 (of 99 total)
My good friend Tom has a very cool solution too, but this script was published in SSC in first time I guess in 2008 or 2009 (you can check by...
May 27, 2016 at 9:11 am
Iwas Bornready and Perry Whittle, Thanks guys !!! Glad you liked !!!
May 16, 2016 at 2:38 am
Cool man.. That´s it
The import-module SQLPS just makes the job to load the assembly for you. I , particularly, like to load the assemblies manually, but that´s me !!!...
May 13, 2016 at 5:48 pm
Awesome man!!! I already added this function to my toolbelt
BTW, the order is, according the Master Jedi Joel Bennet (Jaykul)
"Path order, then alphabetic order, then highest version if you...
May 13, 2016 at 3:38 am
Hey man, just got the confirmation. It is by the path order in the $env:psmodulepath that import-module load when using just the name, not the full path .
The Shanw´s function...
May 12, 2016 at 8:26 pm
Actually my friend, I have installed the other version of SQL Server in a VM to test for you, but I forgot to restart my VM to update the environment...
May 12, 2016 at 8:36 am
Bom dia Meu amigo 🙂
This code is pretty cool, but you run it without load the SMO it will not returns to you the highest one ..actually will not returns...
May 11, 2016 at 9:35 am
Just a complementar information about write-output and write-host.
Write-output writes the output to the pipeline (what you should want to do it, since powershell is a object-oriented shell).
Write-host takes all...
October 23, 2013 at 12:20 am
Just a comment, you are not installing anything. it is a open source library, you can check the code and it is only copy and paste the modules It is...
August 26, 2013 at 12:47 am
If you get-member in get-sqldata you will see that it returns a System.Data.DataRow and the properties related to your query. This is what you need to use :
In you query,the...
November 18, 2012 at 1:01 pm
To get the SQL Server info,
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") > $null
$server = new-object ('Microsoft.SqlServer.Management.Smo.Server') 'SQLName'
#You can select all the properties
$server
#Just version and edition and language
$server | select version, edition,language
Or we can...
October 30, 2012 at 4:38 am
For me the best book ever on Posh V2 :
Windows PowerShell In Action 2d, Bruce Payette
October 1, 2012 at 3:59 am
I dont know if I understand vey well,but if you want to get the last line and output to a new file :
(Get-Content c:\Test\lines.txt )[-1] | Out-File c:\test\NewLine.txt
Then same...
September 24, 2012 at 10:19 am
Great info man !!! Thanks 🙂
August 23, 2012 at 11:23 am
Humm Interesting..I had read it but not tried. Let me understand, your proxy account MyAuthenticatedUser was just open WMI Control (wmimgmt.msc) and grant Remote Enable on the ROOT\CIMV2 namespace ?
And...
August 23, 2012 at 11:02 am
Viewing 15 posts - 1 through 15 (of 99 total)