Viewing 15 posts - 1 through 15 (of 75 total)
SQL Browser is on for all nodes. Instances are all named. Users normally go through apps, never direct connect. We found through testing that the port number was required, even...
May 18, 2022 at 2:24 pm
Thanks Johan. Specifically, I was referring to SQL aliases. I assumed they would need to be on all servers, so I added them to all nodes. We are using CNAMES...
May 18, 2022 at 12:53 pm
Thanks Steve. That was my next step. I was going to do some testing, to see what happens, but you beat me to it. I just thought if someone already...
April 13, 2018 at 1:48 pm
I have sized most of the others, to the anticipated size. The largest one, that I am trying to reduce, has no free space, and if I use the emptyfile,...
April 5, 2018 at 8:59 am
I have multiple file groups, primary, data, index, and lob. I am trying to balance the data across all of the individual files. I am not doing the primary just yet....
April 5, 2018 at 6:13 am
Attached is what I use. The attached code executes from a SQL Server agent job. You will need to add your own instance list processing, and update the smtp...
November 18, 2016 at 6:22 am
Is there a firewall or proxy issue? I have never had an issue with SSMS, but other products I try to update are blocked by our internal security.
Leonard
November 10, 2016 at 1:23 pm
As far as I know, there isn't any way to do this. There are some job variables, within the SQL job that can be used, but probably not what...
November 10, 2016 at 1:19 pm
Yep. That's how I collect data to monitor db growth, get missing backups etc. No need to execute SQL in many cases.
Leonard
October 27, 2016 at 4:07 am
As I said, this was just some code I threw together, and didn't test. You need to add this:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
That command is actually being deprecated, but I don't like...
October 26, 2016 at 12:52 pm
Attached is code that I use to get missing backups, and email the report. This may give you some additional ideas.
Leonard
October 25, 2016 at 1:58 pm
I don't have exactly what you need, but I have several pieces of code, that do some of these. For example, I have code to format to html and send...
October 25, 2016 at 1:54 pm
Here is some code I use. Hope it helps.
$Drives = Get-WmiObject -Class Win32_Volume -ComputerName $InstanceName -Filter "DriveType = 3" | Where-Object { $_.Name -notlike "\\?\Volume*" } | Sort-Object Caption ...
August 25, 2016 at 11:55 am
ok, I'm an idiot. Just realized the ask was for adding a role, not a member to a role. That one we didn't automate.
July 27, 2016 at 11:29 am
There are a lot of reasons for doing this through Powershell. We have automated quite a few things, including creating or duplicating a login. Being able to do add...
July 27, 2016 at 11:19 am
Viewing 15 posts - 1 through 15 (of 75 total)