Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created April 3, 2017 13:44
Show Gist options
  • Save matt40k/caf04f35876a46ba56bfb9885ea3c9e0 to your computer and use it in GitHub Desktop.
Save matt40k/caf04f35876a46ba56bfb9885ea3c9e0 to your computer and use it in GitHub Desktop.
# Get port for instance from C:\Program Files (x86)\Microsoft SQL Server\90\Shared\ASConfig\msmdredir.ini
# Unless you have SQLBrowser running
Invoke-ASCmd -Server 'localhost:49713' -InputFile 'C:\temp\XMLAQuery1.xmla'
# Don't forget to refresh your list in SQL Management Studio!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment