Skip to content

Instantly share code, notes, and snippets.

View nkavadias's full-sized avatar

Nick Kavadias nkavadias

View GitHub Profile
@nkavadias
nkavadias / ExportSchema.ps1
Last active February 20, 2018 22:37 — forked from cheynewallace/ExportSchema.ps1
Export MSSQL schema with PowerShell. This script will export your schema definitions for tables, stored procs, triggers, functions and views to .sql files
<#
.SYNOPSIS
Export schema for a database
.DESCRIPTION
This script will export your schema definitions for tables, stored procs, triggers, functions and views to .sql files
.PARAMETER ServerName
database server instance
.PARAMETER DatabaseName
You can specify a database name to only export single DB schema
.PARAMETER ScriptPath
<#
.SYNOPSIS
Resize an image
.DESCRIPTION
Resize an image based on a new given height or width or a single dimension and a maintain ratio flag.
The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original
file extension
.PARAMETER Width
The new width of the image. Can be given alone with the MaintainRatio flag
.PARAMETER Height