MemberCount | Name | Purpose |
---|---|---|
9363 | announcements | welcome to SQL Community Slack! You can click on the "Channels" to browse all the public channels. This channel is for announcements by moderators. |
9129 | sqlhelp | Another way to ask for help besides Twitter.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Listing of the required information to install SQL Server Management Studio via the Package resource with PowerShell DSC. | |
# Example config: | |
Configuration InstallSSMS { | |
Package InstallSsms { | |
Ensure = "Present" | |
ProductID = <GUID value> | |
Name = Full SSMS Name that displays in Program Features | |
Path = SSMS-Setup-ENU.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$moduleRoot = (Resolve-Path "$PSScriptRoot\..").Path | |
$allFiles = Get-ChildItem -Path $moduleRoot -Recurse -Filter "*.ps1" | | |
Where-Object FullName -NotLike "$moduleRoot\tests\*" | | |
Where-Object FullName -NotLike "$moduleRoot\Build.ps1" | |
Describe "Verifying module PS1 files" -Foreach $allFiles { | |
BeforeAll { | |
$name = $_.Name | |
$fullName = $_.FullName | |
$file = $_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "thycotic", | |
// entire background | |
"background": "#081F2C", | |
// default text | |
"foreground": "#B3D565", | |
//quoted values | |
"cyan": "#3CC4E5", | |
// commands | |
"brightYellow": "#80BB01", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Prompt { | |
$major = $PSVersionTable.PSVersion.Major | |
$minor = $PSVersionTable.PSVersion.Minor | |
$patch = $PSVersionTable.PSVersion.Patch | |
if ($major -lt 6) { | |
Write-Host "[PS $($major).$($minor)] [" -NoNewline | |
} else { | |
$patch = $PSVersionTable.PSVersion.Patch | |
Write-Host "[PS $($major).$($minor).$($patch)] [" -NoNewline | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (-not("dummy" -as [type])) { | |
add-type -TypeDefinition @" | |
using System; | |
using System.Net; | |
using System.Net.Security; | |
using System.Security.Cryptography.X509Certificates; | |
public static class Dummy { | |
public static bool ReturnTrue(object sender, | |
X509Certificate certificate, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "alt+up", | |
"command": "workbench.action.navigateUp" | |
}, | |
{ | |
"key": "alt+down", | |
"command": "workbench.action.navigateDown" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "alt+up", | |
"command": "workbench.action.navigateUp" | |
}, | |
{ | |
"key": "alt+down", | |
"command": "workbench.action.navigateDown" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function New-SqlContainer { | |
<# | |
.SYNOPSIS | |
Use to create n+ number of containers for development purposes. | |
.PARAMETER Number | |
Provide the number of containers you want created, minimum of 1. | |
.PARAMETER Prefix | |
Provide the prefix to use in the contain names (e.g. kringer1, kringer2, etc) | |
.PARAMETER Version | |
Version of SQL Server, based on the images you have pulled down (e.g. 2017, 2019) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Ref: https://stackoverflow.com/a/6827017/12974596 | |
[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms"); | |
$file = Get-ChildItem 'C:\temp\template.bmp' | |
$img = New-Object System.Drawing.BitMap($file.FullName) | |
$newFile = 'C:\temp\eureka.bmp' | |
[String]$drawString = "lab-ss-01 server" | |
$colorBlue = (New-Object System.Drawing.ColorConverter).ConvertFromString("blue") | |
$drawFont = New-Object -TypeName System.Drawing.Font -ArgumentList "Arial",16 | |
$drawBrush = New-Object -TypeName System.Drawing.SolidBrush -ArgumentList $colorBlue | |
[float]$x = '150.0' |