Viewing 15 posts - 1 through 15 (of 69 total)
This is probably what you are looking for http://gallery.technet.microsoft.com/scriptcenter/2fdeaf8d-b164-411c-9483-99413d6053ae
Note it uses bulkcopy and there are some restrictions with that.
June 7, 2013 at 12:28 pm
It would follow "it depends". Pushing a procedure to production during business hours is something that is done consistently (depending on the change, impact, etc).
Not entirely sure...
September 20, 2011 at 9:10 am
This should do it -
Set-ExecutionPolicy RemoteSigned
[Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
Function Get-DatabaseFilesBySpaceAvailable ([Microsoft.SqlServer.Management.Smo.Server] $SmoSqlServer
, [decimal] $sizeThreshold=0.80)
{
$sqlServer.Databases | Where-Object{$_.Status -eq "Normal"} `
| Select-Object FileGroups -ExpandProperty FileGroups `
| Select-Object Files -ExpandProperty Files `
| Where-Object {$_.MaxSize...
May 11, 2011 at 9:34 am
@Nadrek - Its a preference really, I don't like having lots of maintenance jobs on my servers, and when I come up with something new to check, the...
May 11, 2011 at 8:31 am
@Nadrek - using SQL is the normal way for most of us.
At some point, you are going to have too many servers to manage doing on a...
May 11, 2011 at 7:33 am
The hard way.... sheesh 🙂
Pass in an SMO sql object and here you go! (doing the log files is that easy as well)
Function Get-DatabaseFilesBySpaceAvailable ([Microsoft.SqlServer.Management.Smo.Server] $SmoSqlServer
, [decimal] $sizeThreshold=0.85)
{
$sqlServer.Databases |...
May 11, 2011 at 7:11 am
You can dump directly to SQL, I do that for gathering stats for our VM admins. I don't like looking at csvs or text files anymore than the next...
April 7, 2011 at 7:17 am
I don't have anything step by step - but I could easily create a step by step article or a set of blog posts that cover it. Is that...
April 5, 2011 at 12:22 pm
Thanks. If folks have ideas on things to add to it, let me know and I can work them in and share the script.
April 5, 2011 at 6:04 am
Overall, the law has been a good thing as many expressed above. Allowing DBAs to tighten down production, while using SOX as the vehicle to get it done. ...
March 18, 2011 at 7:45 am
In the cubicle world - I think headphones and music are a must. The type of music listened to usually corresponds with what I need to accomplish. If...
December 3, 2010 at 6:21 am
For those of us who live in the Hinterlands - taking the kids out into the woods to explore is all it takes.
Whether its simply throwing sticks, or picking mushrooms,...
October 21, 2010 at 3:28 am
Funny, I saw the other day how to name the file much simpler than the hokey way I did - I think it was on Power Tip of the day....
September 30, 2010 at 2:47 pm
Good Point on pooling - I will make a note to work on an implementation of that.
September 30, 2010 at 10:50 am
Very interesting Kendall - I was focusing on simplicity I suppose, I will try that out and re-post the new script if its possible.
katesl - The simple reason to use...
September 30, 2010 at 7:52 am
Viewing 15 posts - 1 through 15 (of 69 total)