├── Modules ├── CMS │ └── CMS.psd1 ├── Repl │ ├── Repl.psd1 │ └── replscriptopts.ps1 ├── SSIS │ ├── SSIS.psd1 │ └── SSIS.Format.ps1xml ├── Agent │ └── Agent.psd1 ├── SQLMaint │ └── SQLMaint.psd1 ├── SQLParser │ ├── SQLParser.dll │ ├── SQLParser.psd1 │ ├── Microsoft.Data.Schema.ScriptDom.dll │ └── Microsoft.Data.Schema.ScriptDom.Sql.dll ├── ShowMbrs │ ├── ShowMbrs.psd1 │ └── ShowMbrs.psm1 ├── DBMUtilities │ └── DBMUtilities.psd1 ├── SQLPSXServer │ ├── SQLPSXServer.psd1 │ ├── Database │ │ ├── SQLPSX.AllObject.sql │ │ └── SQLPSX.Job.sql │ ├── Report │ │ └── SQLPSX.rds │ ├── Get-SessionTimeStamp.ps1 │ ├── Test-SqlConn.ps1 │ ├── Get-InvalidLogins.ps1 │ ├── Run-SmoToCsvFile.ps1 │ └── Write-SmoCsvToDb.ps1 └── PBM │ └── PBM.psd1 ├── Deprecated ├── WPK │ ├── WPK.psd1 │ ├── WPK.psm1 │ ├── WPF.ps1xml │ ├── license.txt │ ├── Add-GridRow.ps1 │ ├── Close-Control.ps1 │ ├── Get-Resource.ps1 │ ├── Move-Control.ps1 │ ├── Set-Property.ps1 │ ├── Set-Resource.ps1 │ ├── Show-Window.ps1 │ ├── Start-WPFJob.ps1 │ ├── Test-Ancestor.ps1 │ ├── Update-WPFJob.ps1 │ ├── Add-GridColumn.ps1 │ ├── ConvertTo-Xaml.ps1 │ ├── Examples │ │ ├── flyin.ps1 │ │ ├── Gradient.ps1 │ │ ├── ListView.ps1 │ │ ├── Stopwatch.ps1 │ │ ├── RunCommand.ps1 │ │ ├── Show-Module.ps1 │ │ ├── CmdletExample.ps1 │ │ ├── DataTemplate.ps1 │ │ ├── DigitalClock.ps1 │ │ ├── FlowDocument.ps1 │ │ ├── ImportWinForms.ps1 │ │ ├── ListBoxSamples.ps1 │ │ ├── MutlitouchDraw.ps1 │ │ ├── SimpleDialog.ps1 │ │ ├── SkewAnimation.ps1 │ │ ├── CanvasFromDesign.ps1 │ │ ├── EllipseAnimation.ps1 │ │ ├── MutlitouchImage.ps1 │ │ ├── canvasfromblend.ps1 │ │ ├── AddGridRowExample.ps1 │ │ ├── MoveControlExamples.ps1 │ │ ├── MixingArgumentFormats.ps1 │ │ ├── PowerShellDataSources.ps1 │ │ ├── AnimatedLinesFromCenter.ps1 │ │ └── RichTextBoxAndCommands.ps1 │ ├── Hide-UIElement.ps1 │ ├── Show-UIElement.ps1 │ ├── Start-Animation.ps1 │ ├── Test-Descendent.ps1 │ ├── Add-ChildControl.ps1 │ ├── Add-EventHandler.ps1 │ ├── Enable-Multitouch.ps1 │ ├── Export-Application.ps1 │ ├── Get-ChildControl.ps1 │ ├── Get-CommandPlugin.ps1 │ ├── ConvertTo-GridLength.ps1 │ ├── Remove-ChildControl.ps1 │ ├── Add-CodeGenerationRule.ps1 │ ├── ConvertTo-DataTemplate.ps1 │ ├── Copy-DependencyProperty.ps1 │ ├── Get-CommonParentControl.ps1 │ ├── Get-DependencyProperty.ps1 │ ├── Get-HashtableAsObject.ps1 │ ├── Get-ReferencedCommand.ps1 │ ├── Get-UIElementPosition.ps1 │ ├── Set-DependencyProperty.ps1 │ ├── Start-PowerShellCommand.ps1 │ ├── Stop-PowerShellCommand.ps1 │ ├── Get-PowerShellDataSource.ps1 │ ├── ConvertTo-ParameterMetaData.ps1 │ ├── Join-PowerShellCommandOutput.ps1 │ ├── Register-PowerShellCommand.ps1 │ ├── Rules │ │ └── WPFCodeGenerationRules.ps1 │ ├── Unregister-PowerShellCommand.ps1 │ ├── ConvertFrom-TypeToScriptCmdlet.ps1 │ └── readme.txt ├── SQLIse │ ├── SQLIse.psm1 │ ├── SQLPSX.PNG │ ├── Set-Options.ps1 │ ├── TabExpansion.ps1 │ ├── Show-TableBrowser.ps1 │ ├── Get-ConnectionInfo.ps1 │ ├── Switch-CommentOrText.ps1 │ ├── Show-ConnectionManager.ps1 │ ├── Switch-SelectedCommentOrText.ps1 │ ├── Invoke-Coalesce.ps1 │ ├── ConvertFrom-Xml.ps1 │ ├── Expand-String.ps1 │ ├── Library-StringCrypto.ps1 │ ├── ConvertTo-StringData.ps1 │ ├── Get-TableAlias.ps1 │ ├── defaultopts.ps1 │ ├── Get-TabObjectList.ps1 │ ├── Show-DbObjectList.ps1 │ └── Library-UserStore.ps1 ├── OracleIse │ ├── SQLPSX.PNG │ ├── OracleIse.psm1 │ ├── Set-Options.ps1 │ ├── Get-ConnectionInfo.ps1 │ ├── Switch-CommentOrText.ps1 │ ├── Switch-SelectedCommentOrText.ps1 │ ├── ConvertFrom-Xml.ps1 │ ├── Expand-String.ps1 │ ├── ConvertTo-StringData.ps1 │ ├── defaultopts.ps1 │ └── Library-UserStore.ps1 ├── SQLPSXInstaller │ ├── SQLPSX.msi │ ├── SQLPSX.wxs │ ├── adolib.wxs │ ├── mySQLLib.wxs │ ├── SQLProfiler.wxs │ ├── PerfCounters.wxs │ ├── Agent.wxs │ ├── SQLMaint.wxs │ ├── ShowMbrs.wxs │ ├── Config.wxi │ ├── Repl.wxs │ ├── SSIS.wxs │ ├── OracleClient.wxs │ ├── ISECreamBasic.wxs │ ├── SQLParser.wxs │ ├── License.rtf │ ├── OracleIse.wxs │ └── sqlpsxinstaller.ps1 ├── Test Scripts │ ├── Test.Repl.ps1 │ ├── Test.SSIS.ps1 │ ├── Test.Agent.ps1 │ ├── Test.Repl.Help.ps1 │ ├── Test.SQLServer.ps1 │ ├── Test.Agent.Help.ps1 │ ├── Test.SSIS.TearDown.ps1 │ └── testadolib.ps1 ├── Database │ ├── dbo.Login.Table.sql │ ├── dbo.SqlUser.Table.sql │ ├── dbo.ServerRole.Table.sql │ ├── dbo.SqlServer.Table.sql │ ├── dbo.DatabaseRole.Table.sql │ ├── dbo.vw_LoginMember.View.sql │ ├── dbo.vw_SqlUserMember.View.sql │ ├── dbo.DatabasePermission.Table.sql │ ├── dbo.ObjectPermission.Table.sql │ ├── dbo.ServerPermission.Table.sql │ ├── dbo.vw_ServerRoleMember.View.sql │ ├── dbo.SqlLinkedServerLogin.Table.sql │ ├── dbo.usp_Login.StoredProcedure.sql │ ├── dbo.vw_DatabaseRoleMember.View.sql │ ├── dbo.vw_SqlUserOwnedObject.View.sql │ ├── dbo.usp_SqlUser.StoredProcedure.sql │ ├── dbo.usp_del_Login.StoredProcedure.sql │ ├── dbo.usp_ServerRole.StoredProcedure.sql │ ├── dbo.usp_del_SqlUser.StoredProcedure.sql │ ├── dbo.vw_ObjectPermissionMember.View.sql │ ├── dbo.vw_ServerPermissionMember.View.sql │ ├── dbo.ufn_GetMember.UserDefinedFunction.sql │ ├── dbo.usp_ChangedLogin.StoredProcedure.sql │ ├── dbo.usp_ChangedSqlUser.StoredProcedure.sql │ ├── dbo.usp_DatabaseRole.StoredProcedure.sql │ ├── dbo.usp_del_ServerRole.StoredProcedure.sql │ ├── dbo.vw_DatabasePermissionMember.View.sql │ ├── dbo.usp_ObjectPermission.StoredProcedure.sql │ ├── dbo.usp_ServerPermission.StoredProcedure.sql │ ├── dbo.usp_del_DatabaseRole.StoredProcedure.sql │ ├── dbo.vw_SqlUserDistinctServerdbname.View.sql │ ├── dbo.ufn_GetObjectName.UserDefinedFunction.sql │ ├── dbo.ufn_GetObjectType.UserDefinedFunction.sql │ ├── dbo.usp_ChangedDatabaseRole.StoredProcedure.sql │ ├── dbo.usp_ChangedServerRole.StoredProcedure.sql │ ├── dbo.usp_DatabasePermission.StoredProcedure.sql │ ├── dbo.usp_LinkedServerLogin.StoredProcedure.sql │ ├── dbo.usp_SqlUserOwnedObject.StoredProcedure.sql │ ├── dbo.usp_del_LinkedServerLogin.StoredProcedure.sql │ ├── dbo.usp_del_ObjectPermission.StoredProcedure.sql │ ├── dbo.usp_del_ServerPermission.StoredProcedure.sql │ ├── dbo.usp_ChangedObjectPermission.StoredProcedure.sql │ ├── dbo.usp_ChangedServerPermission.StoredProcedure.sql │ ├── dbo.usp_del_DatabasePermission.StoredProcedure.sql │ ├── dbo.usp_ChangedDatabasePermission.StoredProcedure.sql │ └── dbo.usp_ChangedSqlUserOwnedObject.StoredProcedure.sql ├── Documentation │ ├── static │ │ ├── index.htm │ │ ├── Get-Sql.htm │ │ ├── default.htm │ │ ├── Add-SqlUser.htm │ │ ├── Get-ISData.htm │ │ ├── Get-ISItem.htm │ │ ├── Get-SqlData.htm │ │ ├── Get-SqlPort.htm │ │ ├── Get-SqlUser.htm │ │ ├── Get-SqlView.htm │ │ ├── New-ISItem.htm │ │ ├── Set-SqlData.htm │ │ ├── Test-ISPath.htm │ │ ├── Add-SqlLogin.htm │ │ ├── Get-AgentJob.htm │ │ ├── Get-GroupUser.htm │ │ ├── Get-ISPackage.htm │ │ ├── Get-ShowMbrs.htm │ │ ├── Get-SqlCheck.htm │ │ ├── Get-SqlColumn.htm │ │ ├── Get-SqlIndex.htm │ │ ├── Get-SqlLogin.htm │ │ ├── Get-SqlSchema.htm │ │ ├── Get-SqlServer.htm │ │ ├── Get-SqlTable.htm │ │ ├── New-ShowMbrs.htm │ │ ├── Out-SqlScript.htm │ │ ├── Remove-ISItem.htm │ │ ├── Rename-ISItem.htm │ │ ├── Set-ISPackage.htm │ │ ├── Set-ShowMbrs.htm │ │ ├── Add-SqlDataFile.htm │ │ ├── Add-SqlDatabase.htm │ │ ├── Add-SqlFileGroup.htm │ │ ├── Add-SqlLogFile.htm │ │ ├── Get-AgentAlert.htm │ │ ├── Get-AgentJobStep.htm │ │ ├── Get-ReplArticle.htm │ │ ├── Get-ReplMonitor.htm │ │ ├── Get-ReplScript.htm │ │ ├── Get-ReplServer.htm │ │ ├── Get-SqlDataFile.htm │ │ ├── Get-SqlDatabase.htm │ │ ├── Get-SqlEdition.htm │ │ ├── Get-SqlErrorLog.htm │ │ ├── Get-SqlLogFile.htm │ │ ├── Get-SqlProcess.htm │ │ ├── Get-SqlScripter.htm │ │ ├── Get-SqlShowMbrs.htm │ │ ├── Get-SqlStatistic.htm │ │ ├── Get-SqlSynonym.htm │ │ ├── Get-SqlTrigger.htm │ │ ├── Get-SqlVersion.htm │ │ ├── Invoke-SqlBackup.htm │ │ ├── Remove-SqlLogin.htm │ │ ├── Remove-SqlUser.htm │ │ ├── Test-SqlScript.htm │ │ ├── Get-AgentJobServer.htm │ │ ├── Get-AgentOperator.htm │ │ ├── Get-AgentSchedule.htm │ │ ├── Get-SqlConnection.htm │ │ ├── Get-SqlDefaultDir.htm │ │ ├── Get-SqlForeignKey.htm │ │ ├── Get-SqlServerRole.htm │ │ ├── Get-SqlTransaction.htm │ │ ├── Invoke-SqlRestore.htm │ │ ├── New-ISApplication.htm │ │ ├── Remove-SqlDatabase.htm │ │ ├── Add-SqlDatabaseRole.htm │ │ ├── Copy-ISItemFileToSQL.htm │ │ ├── Copy-ISItemSQLToFile.htm │ │ ├── Copy-ISItemSQLToSQL.htm │ │ ├── Get-AgentJobHistory.htm │ │ ├── Get-AgentJobSchedule.htm │ │ ├── Get-AgentProxyAccount.htm │ │ ├── Get-AgentTargetServer.htm │ │ ├── Get-ISRunningPackage.htm │ │ ├── Get-ReplPublication.htm │ │ ├── Get-ReplSubscription.htm │ │ ├── Get-SqlDatabaseRole.htm │ │ ├── Get-SqlSysDatabases.htm │ │ ├── Invoke-SqlIndexDefrag.htm │ │ ├── New-ReplScriptOptions.htm │ │ ├── Update-SqlStatistic.htm │ │ ├── Add-SqlServerRoleMember.htm │ │ ├── Get-AgentAlertCategory.htm │ │ ├── Get-SqlObjectPermission.htm │ │ ├── Get-SqlServerPermission.htm │ │ ├── Get-SqlStoredProcedure.htm │ │ ├── Invoke-SqlDatabaseCheck.htm │ │ ├── Invoke-SqlIndexRebuild.htm │ │ ├── New-SqlScriptingOptions.htm │ │ ├── Remove-SqlDatabaseRole.htm │ │ ├── Set-ISConnectionString.htm │ │ ├── Set-SqlObjectPermission.htm │ │ ├── Set-SqlServerPermission.htm │ │ ├── Add-SqlDatabaseRoleMember.htm │ │ ├── Get-AgentOperatorCategory.htm │ │ ├── Get-AgentTargetServerGroup.htm │ │ ├── Get-ISSqlConfigurationItem.htm │ │ ├── Get-ReplEnumLogReaderAgent.htm │ │ ├── Get-ReplEnumPublications.htm │ │ ├── Get-ReplEnumPublications2.htm │ │ ├── Get-ReplEnumSnapshotAgent.htm │ │ ├── Get-ReplEnumSubscriptions.htm │ │ ├── Get-ReplEnumSubscriptions2.htm │ │ ├── Get-ReplLightPublication.htm │ │ ├── Get-ReplPublicationMonitor.htm │ │ ├── Get-ReplPublisherMonitor.htm │ │ ├── Get-SqlDatabasePermission.htm │ │ ├── Get-SqlIndexFragmentation.htm │ │ ├── Get-SqlLinkedServerLogin.htm │ │ ├── Get-SqlUserDefinedDataType.htm │ │ ├── Get-SqlUserDefinedFunction.htm │ │ ├── New-ReplMergePublication.htm │ │ ├── New-ReplTransPublication.htm │ │ ├── Remove-SqlServerRoleMember.htm │ │ ├── Set-AgentJobHistoryFilter.htm │ │ ├── Set-SqlDatabasePermission.htm │ │ ├── Remove-SqlDatabaseRoleMember.htm │ │ ├── Get-ReplSubscriberSubscription.htm │ │ ├── Get-ReplTransPendingCommandInfo.htm │ │ ├── Get-SqlInformation_Schema.Views.htm │ │ ├── Get-SqlInformation_Schema.Columns.htm │ │ ├── Get-SqlInformation_Schema.Tables.htm │ │ └── Get-SqlInformation_Schema.Routines.htm │ ├── app.yaml │ └── index.yaml ├── ISECreamBasic │ ├── Add-IseMenu.ps1 │ ├── ISECreamBasic.psm1 │ ├── Remove-IseMenu.ps1 │ ├── readme.txt │ └── license.txt ├── OracleClient │ ├── invoke-query.ps1 │ ├── new-connection.ps1 │ ├── get-commandresults.ps1 │ ├── OracleClient.psm1 │ └── OracleBulkcopy.ps1 ├── Scripts │ └── formatsql.bat ├── Reports │ ├── PBM │ │ ├── PolicyDataDS.rds │ │ ├── PBM.sln │ │ └── PBM.rptproj │ └── SQLPSX │ │ ├── SQLPSX │ │ ├── SQLPSX.rds │ │ └── SQLPSX.rptproj │ │ └── SQLPSX.sln ├── PBM │ ├── Database │ │ ├── dbo.PolicyEvalError.Table.sql │ │ └── dbo.PolicyEval.Table.sql │ └── readme.txt ├── SQLParser │ ├── SQLParser.sln │ └── SQLParser │ │ ├── PSSnapin.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── TestSqlScript.cs │ │ ├── SQLScripter.cs │ │ ├── SQLParser.cs │ │ └── Microsoft.Data.Schema.ScriptDom.xml ├── SQLPSX │ └── SQLPSX.psm1 └── Library │ └── LibraryShowMbrs.ps1 ├── screenshots_SQLPSX.docx ├── SQLPSX.pssproj.user ├── .gitignore └── License.txt /Modules/CMS/CMS.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/CMS/CMS.psd1 -------------------------------------------------------------------------------- /Modules/Repl/Repl.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/Repl/Repl.psd1 -------------------------------------------------------------------------------- /Modules/SSIS/SSIS.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SSIS/SSIS.psd1 -------------------------------------------------------------------------------- /Deprecated/WPK/WPK.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/WPK.psd1 -------------------------------------------------------------------------------- /Deprecated/WPK/WPK.psm1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/WPK.psm1 -------------------------------------------------------------------------------- /Modules/Agent/Agent.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/Agent/Agent.psd1 -------------------------------------------------------------------------------- /screenshots_SQLPSX.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/screenshots_SQLPSX.docx -------------------------------------------------------------------------------- /Deprecated/WPK/WPF.ps1xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/WPF.ps1xml -------------------------------------------------------------------------------- /Deprecated/WPK/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/license.txt -------------------------------------------------------------------------------- /Deprecated/SQLIse/SQLIse.psm1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/SQLIse.psm1 -------------------------------------------------------------------------------- /Deprecated/SQLIse/SQLPSX.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/SQLPSX.PNG -------------------------------------------------------------------------------- /Deprecated/OracleIse/SQLPSX.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleIse/SQLPSX.PNG -------------------------------------------------------------------------------- /Deprecated/WPK/Add-GridRow.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Add-GridRow.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Close-Control.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Close-Control.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-Resource.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-Resource.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Move-Control.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Move-Control.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Set-Property.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Set-Property.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Set-Resource.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Set-Resource.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Show-Window.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Show-Window.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Start-WPFJob.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Start-WPFJob.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Test-Ancestor.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Test-Ancestor.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Update-WPFJob.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Update-WPFJob.ps1 -------------------------------------------------------------------------------- /Modules/SQLMaint/SQLMaint.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SQLMaint/SQLMaint.psd1 -------------------------------------------------------------------------------- /Modules/SQLParser/SQLParser.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SQLParser/SQLParser.dll -------------------------------------------------------------------------------- /Modules/SQLParser/SQLParser.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SQLParser/SQLParser.psd1 -------------------------------------------------------------------------------- /Modules/ShowMbrs/ShowMbrs.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/ShowMbrs/ShowMbrs.psd1 -------------------------------------------------------------------------------- /Deprecated/SQLIse/Set-Options.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/Set-Options.ps1 -------------------------------------------------------------------------------- /Deprecated/SQLIse/TabExpansion.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/TabExpansion.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Add-GridColumn.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Add-GridColumn.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/ConvertTo-Xaml.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/ConvertTo-Xaml.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/flyin.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/flyin.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Hide-UIElement.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Hide-UIElement.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Show-UIElement.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Show-UIElement.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Start-Animation.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Start-Animation.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Test-Descendent.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Test-Descendent.ps1 -------------------------------------------------------------------------------- /Deprecated/OracleIse/OracleIse.psm1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleIse/OracleIse.psm1 -------------------------------------------------------------------------------- /Deprecated/OracleIse/Set-Options.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleIse/Set-Options.ps1 -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/SQLPSX.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLPSXInstaller/SQLPSX.msi -------------------------------------------------------------------------------- /Deprecated/Test Scripts/Test.Repl.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Test Scripts/Test.Repl.ps1 -------------------------------------------------------------------------------- /Deprecated/Test Scripts/Test.SSIS.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Test Scripts/Test.SSIS.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Add-ChildControl.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Add-ChildControl.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Add-EventHandler.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Add-EventHandler.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Enable-Multitouch.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Enable-Multitouch.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/Gradient.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/Gradient.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/ListView.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/ListView.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/Stopwatch.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/Stopwatch.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Export-Application.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Export-Application.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-ChildControl.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-ChildControl.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-CommandPlugin.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-CommandPlugin.ps1 -------------------------------------------------------------------------------- /Deprecated/Database/dbo.Login.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.Login.Table.sql -------------------------------------------------------------------------------- /Deprecated/SQLIse/Show-TableBrowser.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/Show-TableBrowser.ps1 -------------------------------------------------------------------------------- /Deprecated/Test Scripts/Test.Agent.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Test Scripts/Test.Agent.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/ConvertTo-GridLength.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/ConvertTo-GridLength.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/RunCommand.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/RunCommand.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/Show-Module.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/Show-Module.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Remove-ChildControl.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Remove-ChildControl.ps1 -------------------------------------------------------------------------------- /Modules/DBMUtilities/DBMUtilities.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/DBMUtilities/DBMUtilities.psd1 -------------------------------------------------------------------------------- /Modules/SQLPSXServer/SQLPSXServer.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SQLPSXServer/SQLPSXServer.psd1 -------------------------------------------------------------------------------- /Deprecated/Database/dbo.SqlUser.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.SqlUser.Table.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/index.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/index.htm -------------------------------------------------------------------------------- /Deprecated/ISECreamBasic/Add-IseMenu.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/ISECreamBasic/Add-IseMenu.ps1 -------------------------------------------------------------------------------- /Deprecated/OracleClient/invoke-query.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleClient/invoke-query.ps1 -------------------------------------------------------------------------------- /Deprecated/OracleClient/new-connection.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleClient/new-connection.ps1 -------------------------------------------------------------------------------- /Deprecated/SQLIse/Get-ConnectionInfo.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/Get-ConnectionInfo.ps1 -------------------------------------------------------------------------------- /Deprecated/SQLIse/Switch-CommentOrText.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/Switch-CommentOrText.ps1 -------------------------------------------------------------------------------- /Deprecated/Test Scripts/Test.Repl.Help.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Test Scripts/Test.Repl.Help.ps1 -------------------------------------------------------------------------------- /Deprecated/Test Scripts/Test.SQLServer.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Test Scripts/Test.SQLServer.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Add-CodeGenerationRule.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Add-CodeGenerationRule.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/ConvertTo-DataTemplate.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/ConvertTo-DataTemplate.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Copy-DependencyProperty.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Copy-DependencyProperty.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/CmdletExample.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/CmdletExample.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/DataTemplate.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/DataTemplate.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/DigitalClock.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/DigitalClock.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/FlowDocument.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/FlowDocument.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/ImportWinForms.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/ImportWinForms.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/ListBoxSamples.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/ListBoxSamples.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/MutlitouchDraw.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/MutlitouchDraw.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/SimpleDialog.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/SimpleDialog.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/SkewAnimation.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/SkewAnimation.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-CommonParentControl.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-CommonParentControl.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-DependencyProperty.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-DependencyProperty.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-HashtableAsObject.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-HashtableAsObject.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-ReferencedCommand.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-ReferencedCommand.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-UIElementPosition.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-UIElementPosition.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Set-DependencyProperty.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Set-DependencyProperty.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Start-PowerShellCommand.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Start-PowerShellCommand.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Stop-PowerShellCommand.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Stop-PowerShellCommand.ps1 -------------------------------------------------------------------------------- /Deprecated/Database/dbo.ServerRole.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.ServerRole.Table.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.SqlServer.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.SqlServer.Table.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-Sql.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-Sql.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/default.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/default.htm -------------------------------------------------------------------------------- /Deprecated/ISECreamBasic/ISECreamBasic.psm1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/ISECreamBasic/ISECreamBasic.psm1 -------------------------------------------------------------------------------- /Deprecated/ISECreamBasic/Remove-IseMenu.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/ISECreamBasic/Remove-IseMenu.ps1 -------------------------------------------------------------------------------- /Deprecated/OracleIse/Get-ConnectionInfo.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleIse/Get-ConnectionInfo.ps1 -------------------------------------------------------------------------------- /Deprecated/SQLIse/Show-ConnectionManager.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/Show-ConnectionManager.ps1 -------------------------------------------------------------------------------- /Deprecated/Scripts/formatsql.bat: -------------------------------------------------------------------------------- 1 | C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.EXE -command "& {out-sqlscript -Inputscript '%1'}" 2 | -------------------------------------------------------------------------------- /Deprecated/Test Scripts/Test.Agent.Help.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Test Scripts/Test.Agent.Help.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/CanvasFromDesign.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/CanvasFromDesign.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/EllipseAnimation.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/EllipseAnimation.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/MutlitouchImage.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/MutlitouchImage.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/canvasfromblend.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/canvasfromblend.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Get-PowerShellDataSource.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Get-PowerShellDataSource.ps1 -------------------------------------------------------------------------------- /Deprecated/Database/dbo.DatabaseRole.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.DatabaseRole.Table.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_LoginMember.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_LoginMember.View.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlUser.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlUser.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ISData.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ISData.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ISItem.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ISItem.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlData.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlData.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlPort.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlPort.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlUser.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlUser.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlView.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlView.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/New-ISItem.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/New-ISItem.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-SqlData.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-SqlData.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Test-ISPath.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Test-ISPath.htm -------------------------------------------------------------------------------- /Deprecated/OracleClient/get-commandresults.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleClient/get-commandresults.ps1 -------------------------------------------------------------------------------- /Deprecated/OracleIse/Switch-CommentOrText.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleIse/Switch-CommentOrText.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/ConvertTo-ParameterMetaData.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/ConvertTo-ParameterMetaData.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/AddGridRowExample.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/AddGridRowExample.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/MoveControlExamples.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/MoveControlExamples.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Join-PowerShellCommandOutput.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Join-PowerShellCommandOutput.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Register-PowerShellCommand.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Register-PowerShellCommand.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Rules/WPFCodeGenerationRules.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Rules/WPFCodeGenerationRules.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Unregister-PowerShellCommand.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Unregister-PowerShellCommand.ps1 -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_SqlUserMember.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_SqlUserMember.View.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlLogin.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlLogin.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentJob.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentJob.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-GroupUser.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-GroupUser.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ISPackage.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ISPackage.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ShowMbrs.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ShowMbrs.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlCheck.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlCheck.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlColumn.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlColumn.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlIndex.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlIndex.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlLogin.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlLogin.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlSchema.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlSchema.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlServer.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlServer.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlTable.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlTable.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/New-ShowMbrs.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/New-ShowMbrs.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Out-SqlScript.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Out-SqlScript.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Remove-ISItem.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Remove-ISItem.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Rename-ISItem.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Rename-ISItem.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-ISPackage.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-ISPackage.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-ShowMbrs.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-ShowMbrs.htm -------------------------------------------------------------------------------- /Deprecated/WPK/ConvertFrom-TypeToScriptCmdlet.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/ConvertFrom-TypeToScriptCmdlet.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/MixingArgumentFormats.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/MixingArgumentFormats.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/PowerShellDataSources.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/PowerShellDataSources.ps1 -------------------------------------------------------------------------------- /Deprecated/Database/dbo.DatabasePermission.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.DatabasePermission.Table.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.ObjectPermission.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.ObjectPermission.Table.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.ServerPermission.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.ServerPermission.Table.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_ServerRoleMember.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_ServerRoleMember.View.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlDataFile.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlDataFile.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlDatabase.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlDatabase.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlFileGroup.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlFileGroup.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlLogFile.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlLogFile.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentAlert.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentAlert.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentJobStep.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentJobStep.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplArticle.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplArticle.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplMonitor.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplMonitor.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplScript.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplScript.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplServer.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplServer.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlDataFile.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlDataFile.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlDatabase.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlDatabase.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlEdition.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlEdition.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlErrorLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlErrorLog.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlLogFile.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlLogFile.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlProcess.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlProcess.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlScripter.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlScripter.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlShowMbrs.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlShowMbrs.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlStatistic.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlStatistic.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlSynonym.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlSynonym.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlTrigger.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlTrigger.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlVersion.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlVersion.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Invoke-SqlBackup.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Invoke-SqlBackup.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Remove-SqlLogin.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Remove-SqlLogin.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Remove-SqlUser.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Remove-SqlUser.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Test-SqlScript.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Test-SqlScript.htm -------------------------------------------------------------------------------- /Deprecated/SQLIse/Switch-SelectedCommentOrText.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/SQLIse/Switch-SelectedCommentOrText.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/AnimatedLinesFromCenter.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/AnimatedLinesFromCenter.ps1 -------------------------------------------------------------------------------- /Deprecated/WPK/Examples/RichTextBoxAndCommands.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/WPK/Examples/RichTextBoxAndCommands.ps1 -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Database/SQLPSX.AllObject.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SQLPSXServer/Database/SQLPSX.AllObject.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.SqlLinkedServerLogin.Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.SqlLinkedServerLogin.Table.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_Login.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_Login.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_DatabaseRoleMember.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_DatabaseRoleMember.View.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_SqlUserOwnedObject.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_SqlUserOwnedObject.View.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentJobServer.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentJobServer.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentOperator.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentOperator.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentSchedule.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentSchedule.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlConnection.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlConnection.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlDefaultDir.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlDefaultDir.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlForeignKey.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlForeignKey.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlServerRole.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlServerRole.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlTransaction.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlTransaction.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Invoke-SqlRestore.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Invoke-SqlRestore.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/New-ISApplication.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/New-ISApplication.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Remove-SqlDatabase.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Remove-SqlDatabase.htm -------------------------------------------------------------------------------- /Deprecated/OracleIse/Switch-SelectedCommentOrText.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/OracleIse/Switch-SelectedCommentOrText.ps1 -------------------------------------------------------------------------------- /Modules/SQLParser/Microsoft.Data.Schema.ScriptDom.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SQLParser/Microsoft.Data.Schema.ScriptDom.dll -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_SqlUser.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_SqlUser.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_Login.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_Login.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlDatabaseRole.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlDatabaseRole.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Copy-ISItemFileToSQL.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Copy-ISItemFileToSQL.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Copy-ISItemSQLToFile.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Copy-ISItemSQLToFile.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Copy-ISItemSQLToSQL.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Copy-ISItemSQLToSQL.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentJobHistory.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentJobHistory.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentJobSchedule.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentJobSchedule.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentProxyAccount.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentProxyAccount.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentTargetServer.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentTargetServer.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ISRunningPackage.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ISRunningPackage.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplPublication.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplPublication.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplSubscription.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplSubscription.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlDatabaseRole.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlDatabaseRole.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlSysDatabases.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlSysDatabases.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Invoke-SqlIndexDefrag.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Invoke-SqlIndexDefrag.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/New-ReplScriptOptions.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/New-ReplScriptOptions.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Update-SqlStatistic.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Update-SqlStatistic.htm -------------------------------------------------------------------------------- /Modules/SQLParser/Microsoft.Data.Schema.ScriptDom.Sql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Modules/SQLParser/Microsoft.Data.Schema.ScriptDom.Sql.dll -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ServerRole.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ServerRole.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_SqlUser.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_SqlUser.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_ObjectPermissionMember.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_ObjectPermissionMember.View.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_ServerPermissionMember.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_ServerPermissionMember.View.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlServerRoleMember.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlServerRoleMember.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentAlertCategory.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentAlertCategory.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlObjectPermission.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlObjectPermission.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlServerPermission.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlServerPermission.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlStoredProcedure.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlStoredProcedure.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Invoke-SqlDatabaseCheck.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Invoke-SqlDatabaseCheck.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Invoke-SqlIndexRebuild.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Invoke-SqlIndexRebuild.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/New-SqlScriptingOptions.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/New-SqlScriptingOptions.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Remove-SqlDatabaseRole.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Remove-SqlDatabaseRole.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-ISConnectionString.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-ISConnectionString.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-SqlObjectPermission.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-SqlObjectPermission.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-SqlServerPermission.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-SqlServerPermission.htm -------------------------------------------------------------------------------- /Deprecated/Database/dbo.ufn_GetMember.UserDefinedFunction.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.ufn_GetMember.UserDefinedFunction.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedLogin.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedLogin.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedSqlUser.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedSqlUser.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_DatabaseRole.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_DatabaseRole.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_ServerRole.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_ServerRole.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_DatabasePermissionMember.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_DatabasePermissionMember.View.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Add-SqlDatabaseRoleMember.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Add-SqlDatabaseRoleMember.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentOperatorCategory.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentOperatorCategory.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-AgentTargetServerGroup.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-AgentTargetServerGroup.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ISSqlConfigurationItem.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ISSqlConfigurationItem.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplEnumLogReaderAgent.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplEnumLogReaderAgent.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplEnumPublications.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplEnumPublications.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplEnumPublications2.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplEnumPublications2.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplEnumSnapshotAgent.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplEnumSnapshotAgent.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplEnumSubscriptions.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplEnumSubscriptions.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplEnumSubscriptions2.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplEnumSubscriptions2.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplLightPublication.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplLightPublication.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplPublicationMonitor.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplPublicationMonitor.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplPublisherMonitor.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplPublisherMonitor.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlDatabasePermission.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlDatabasePermission.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlIndexFragmentation.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlIndexFragmentation.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlLinkedServerLogin.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlLinkedServerLogin.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlUserDefinedDataType.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlUserDefinedDataType.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlUserDefinedFunction.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlUserDefinedFunction.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/New-ReplMergePublication.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/New-ReplMergePublication.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/New-ReplTransPublication.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/New-ReplTransPublication.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Remove-SqlServerRoleMember.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Remove-SqlServerRoleMember.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-AgentJobHistoryFilter.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-AgentJobHistoryFilter.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Set-SqlDatabasePermission.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Set-SqlDatabasePermission.htm -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ObjectPermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ObjectPermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ServerPermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ServerPermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_DatabaseRole.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_DatabaseRole.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.vw_SqlUserDistinctServerdbname.View.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.vw_SqlUserDistinctServerdbname.View.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Remove-SqlDatabaseRoleMember.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Remove-SqlDatabaseRoleMember.htm -------------------------------------------------------------------------------- /Deprecated/Database/dbo.ufn_GetObjectName.UserDefinedFunction.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.ufn_GetObjectName.UserDefinedFunction.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.ufn_GetObjectType.UserDefinedFunction.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.ufn_GetObjectType.UserDefinedFunction.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedDatabaseRole.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedDatabaseRole.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedServerRole.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedServerRole.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_DatabasePermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_DatabasePermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_LinkedServerLogin.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_LinkedServerLogin.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_SqlUserOwnedObject.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_SqlUserOwnedObject.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplSubscriberSubscription.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplSubscriberSubscription.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-ReplTransPendingCommandInfo.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-ReplTransPendingCommandInfo.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlInformation_Schema.Views.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlInformation_Schema.Views.htm -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_LinkedServerLogin.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_LinkedServerLogin.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_ObjectPermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_ObjectPermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_ServerPermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_ServerPermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlInformation_Schema.Columns.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlInformation_Schema.Columns.htm -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlInformation_Schema.Tables.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlInformation_Schema.Tables.htm -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedObjectPermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedObjectPermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedServerPermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedServerPermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_del_DatabasePermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_del_DatabasePermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Documentation/static/Get-SqlInformation_Schema.Routines.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Documentation/static/Get-SqlInformation_Schema.Routines.htm -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedDatabasePermission.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedDatabasePermission.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/Database/dbo.usp_ChangedSqlUserOwnedObject.StoredProcedure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeShepard/SQLPSX/HEAD/Deprecated/Database/dbo.usp_ChangedSqlUserOwnedObject.StoredProcedure.sql -------------------------------------------------------------------------------- /Deprecated/WPK/readme.txt: -------------------------------------------------------------------------------- 1 | Note: WPK is derived from "PowerShellPack" http://code.msdn.microsoft.com/PowerShellPack 2 | The module is redistributed according to the license terms as noted in license.txt 3 | -------------------------------------------------------------------------------- /Deprecated/ISECreamBasic/readme.txt: -------------------------------------------------------------------------------- 1 | Note: IseCreamBasic is derived from "PowerShell ISE-Cream" http://psisecream.codeplex.com/ 2 | The module is redistributed according to the license terms as noted in license.txt 3 | -------------------------------------------------------------------------------- /SQLPSX.pssproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ShowAllFiles 5 | 6 | -------------------------------------------------------------------------------- /Deprecated/Documentation/app.yaml: -------------------------------------------------------------------------------- 1 | application: sqlpsx 2 | version: 1 3 | runtime: python 4 | api_version: 1 5 | 6 | handlers: 7 | - url: (.*)/ 8 | static_files: static\1/index.htm 9 | upload: static/index.htm 10 | 11 | - url: / 12 | static_dir: static 13 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/Invoke-Coalesce.ps1: -------------------------------------------------------------------------------- 1 | ####################### 2 | function Invoke-Coalesce 3 | { 4 | param ($expression1, $expression2) 5 | 6 | if ($expression1) 7 | { $expression1 } 8 | else 9 | { $expression2 } 10 | 11 | } #Invoke-Coalesce 12 | -------------------------------------------------------------------------------- /Deprecated/Test Scripts/Test.SSIS.TearDown.ps1: -------------------------------------------------------------------------------- 1 | get-isitem '\sqlpsx' 'msdb' "$env:computername\sql2k8" | remove-isitem 2 | get-isitem '\sqlpsx2' 'msdb' "$env:computername\sql2k8" | remove-isitem 3 | get-isitem '\' 'msdb' "$env:computername\sql2k8" | ?{$_.name -like "sqlpsx*"} | remove-isitem 4 | remove-item c:\users\u00\bin\SSIS\*.dtsx 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # This .gitignore file was automatically created by Microsoft(R) Visual Studio. 3 | ################################################################################ 4 | 5 | /.vs/SQLPSX/v14/.suo 6 | /SQLPSX.sln 7 | /SQLPSX.pssproj 8 | /SQLPSX.pssproj.user 9 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/ConvertFrom-Xml.ps1: -------------------------------------------------------------------------------- 1 | function ConvertFrom-Xml($XML) { 2 | foreach ($Object in @($XML.Objects.Object)) { 3 | $PSObject = New-Object PSObject 4 | foreach ($Property in @($Object.Property)) { 5 | $PSObject | Add-Member NoteProperty -Name $Property.Name -Value $Property.InnerText 6 | } 7 | $PSObject 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Deprecated/OracleIse/ConvertFrom-Xml.ps1: -------------------------------------------------------------------------------- 1 | function ConvertFrom-Xml($XML) { 2 | foreach ($Object in @($XML.Objects.Object)) { 3 | $PSObject = New-Object PSObject 4 | foreach ($Property in @($Object.Property)) { 5 | $PSObject | Add-Member NoteProperty -Name $Property.Name -Value $Property.InnerText 6 | } 7 | $PSObject 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Deprecated/Reports/PBM/PolicyDataDS.rds: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SQL 5 | Data Source=Z003\R2;Initial Catalog=MDW 6 | true 7 | 8 | b0cb60fa-2e9d-4659-961d-90b5c26eae28 9 | -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Report/SQLPSX.rds: -------------------------------------------------------------------------------- 1 | 2 | 3 | SQLPSX 4 | 5 | SQL 6 | Data Source=Z002\Sql2K8;Initial Catalog=SQLPSX 7 | true 8 | 9 | 2db04bae-0b2a-4c0a-8d64-59f343451c94 10 | -------------------------------------------------------------------------------- /Deprecated/Documentation/index.yaml: -------------------------------------------------------------------------------- 1 | indexes: 2 | 3 | # AUTOGENERATED 4 | 5 | # This index.yaml is automatically updated whenever the dev_appserver 6 | # detects that a new type of query is run. If you want to manage the 7 | # index.yaml file manually, remove the above marker line (the line 8 | # saying "# AUTOGENERATED"). If you want to manage some indexes 9 | # manually, move them above the marker line. The index.yaml file is 10 | # automatically uploaded to the admin console when you next deploy 11 | # your application using appcfg.py. 12 | -------------------------------------------------------------------------------- /Deprecated/Reports/SQLPSX/SQLPSX/SQLPSX.rds: -------------------------------------------------------------------------------- 1 | 2 | 3 | SQLPSX 4 | 5 | SQL 6 | Data Source=Z002\Sql2K8;Initial Catalog=SQLPSX 7 | true 8 | 9 | 2db04bae-0b2a-4c0a-8d64-59f343451c94 10 | -------------------------------------------------------------------------------- /Deprecated/OracleIse/Expand-String.ps1: -------------------------------------------------------------------------------- 1 | 2 | param([String]$text) 3 | 4 | $returnedText = "" 5 | foreach ( $line in $text -split [System.Environment]::NewLine ) { 6 | if ( $line.length -gt 0) { 7 | if ($line -match '(\$(\w+))') 8 | #{ $line = $line -replace '(\$(\w+))',(get-variable $matches[2] -Scope Global -ValueOnly) } 9 | { $line = $line -replace '(\$(\w+))',(get-variable $matches[2] -ValueOnly) } 10 | } 11 | $returnedText += "{0}{1}" -f $line, [System.Environment]::NewLine 12 | } 13 | $returnedText 14 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/Expand-String.ps1: -------------------------------------------------------------------------------- 1 | 2 | param([String]$text) 3 | 4 | $returnedText = "" 5 | foreach ( $line in $text -split [System.Environment]::NewLine ) { 6 | if ( $line.length -gt 0) { 7 | if ($line -match '(\$(\w+))') 8 | #{ $line = $line -replace '(\$(\w+))',(get-variable $matches[2] -Scope Global -ValueOnly) } 9 | { $line = $line -replace '(\$(\w+))',(get-variable $matches[2] -ValueOnly) } 10 | } 11 | $returnedText += "{0}{1}" -f $line, [System.Environment]::NewLine 12 | } 13 | $returnedText 14 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/SQLPSX.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/adolib.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/mySQLLib.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/SQLProfiler.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/PerfCounters.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Get-SessionTimeStamp.ps1: -------------------------------------------------------------------------------- 1 | #### 12 | # --------------------------------------------------------------------------- 13 | 14 | if (!(Test-Path Variable:__SQLPSXSessionTimeStamp)) 15 | { 16 | Set-Variable __SQLPSXSessionTimeStamp $((Get-Date).ToString("yyyy-MM-dd")) -Scope Global -Option AllScope -Description "SQLPSX variable" 17 | } 18 | 19 | Get-Variable __SQLPSXSessionTimeStamp -valueonly 20 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/Library-StringCrypto.ps1: -------------------------------------------------------------------------------- 1 | ####################### 2 | function Protect-String 3 | { 4 | param([string]$InputString) 5 | $secure = ConvertTo-SecureString $InputString -asPlainText -force 6 | $export = $secure | ConvertFrom-SecureString 7 | write-output $export 8 | 9 | } #Protect-String 10 | 11 | ####################### 12 | function UnProtect-String 13 | { 14 | param([string]$InputString) 15 | 16 | $secure = ConvertTo-SecureString $InputString 17 | $helper = New-Object system.Management.Automation.PSCredential("SQLPSX", $secure) 18 | $plain = $helper.GetNetworkCredential().Password 19 | write-output $plain 20 | 21 | } #UnProtect-String 22 | -------------------------------------------------------------------------------- /Deprecated/PBM/Database/dbo.PolicyEvalError.Table.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE [dbo].[PolicyEvalError]( 2 | [PolicyEvalErrorID] [int] IDENTITY(1,1) NOT NULL, 3 | [ServerInstance] [varchar](128) NOT NULL, 4 | [PolicyName] [varchar](128) NOT NULL, 5 | [Exception] [varchar](500) NULL, 6 | [PolicyEvalErrorDate] [datetime] NOT NULL, 7 | CONSTRAINT [PK_PolicyEvalErrorID] PRIMARY KEY CLUSTERED 8 | ( 9 | [PolicyEvalErrorID] ASC 10 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] 11 | ) ON [PRIMARY] 12 | GO 13 | ALTER TABLE [dbo].[PolicyEvalError] ADD CONSTRAINT [DF_PolicyEvalErrorDate] DEFAULT (getdate()) FOR [PolicyEvalErrorDate] 14 | GO 15 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/Agent.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Deprecated/OracleIse/ConvertTo-StringData.ps1: -------------------------------------------------------------------------------- 1 | function ConvertTo-StringData 2 | { 3 | Begin 4 | { 5 | $string = "@{`n" 6 | function Expand-Value 7 | { 8 | param($value) 9 | 10 | if ($value -ne $null) { 11 | switch ($value.GetType().Name) 12 | { 13 | 'String' { "`"$value`"" } 14 | 'Boolean' { "`$$value" } 15 | default { $value } 16 | } 17 | } 18 | else 19 | { "`$null" } 20 | 21 | } 22 | } 23 | Process 24 | { 25 | $string += $_.GetEnumerator() | foreach {"{0} = {1}`n" -f $_.Name,(Expand-Value $_.Value)} 26 | } 27 | End 28 | { 29 | $string += "}" 30 | Write-Output $string 31 | } 32 | 33 | } #ConvertTo-StringData 34 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/ConvertTo-StringData.ps1: -------------------------------------------------------------------------------- 1 | function ConvertTo-StringData 2 | { 3 | Begin 4 | { 5 | $string = "@{`n" 6 | function Expand-Value 7 | { 8 | param($value) 9 | 10 | if ($value -ne $null) { 11 | switch ($value.GetType().Name) 12 | { 13 | 'String' { "`"$value`"" } 14 | 'Boolean' { "`$$value" } 15 | default { $value } 16 | } 17 | } 18 | else 19 | { "`$null" } 20 | 21 | } 22 | } 23 | Process 24 | { 25 | $string += $_.GetEnumerator() | foreach {"{0} = {1}`n" -f $_.Name,(Expand-Value $_.Value)} 26 | } 27 | End 28 | { 29 | $string += "}" 30 | Write-Output $string 31 | } 32 | 33 | } #ConvertTo-StringData 34 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/SQLMaint.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/ShowMbrs.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Deprecated/PBM/Database/dbo.PolicyEval.Table.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE [dbo].[PolicyEval]( 2 | [PolicyEvalID] [int] IDENTITY(1,1) NOT NULL, 3 | [ConfigurationGroup] [varchar](128) NOT NULL, 4 | [PolicyCategoryFilter] [varchar](128) NOT NULL, 5 | [PolicyEvalMode] [varchar](32) NOT NULL, 6 | [PolicyName] [varchar](128) NOT NULL, 7 | [ServerInstance] [varchar](128) NOT NULL, 8 | [TargetQueryExpression] [varchar](500) NOT NULL, 9 | [Result] [bit] NOT NULL, 10 | [Exception] [varchar](500) NULL, 11 | [PolicyEvalDate] [datetime] NOT NULL, 12 | CONSTRAINT [PK_PolicyEvalID] PRIMARY KEY CLUSTERED 13 | ( 14 | [PolicyEvalID] ASC 15 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] 16 | ) ON [PRIMARY] 17 | GO 18 | ALTER TABLE [dbo].[PolicyEval] ADD CONSTRAINT [DF_PolicyEvalDate] DEFAULT (getdate()) FOR [PolicyEvalDate] 19 | GO 20 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/Config.wxi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Deprecated/SQLParser/SQLParser.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLParser", "SQLParser\SQLParser.csproj", "{9651F24A-FFB6-4A18-A696-5C1D5F39A376}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {9651F24A-FFB6-4A18-A696-5C1D5F39A376}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {9651F24A-FFB6-4A18-A696-5C1D5F39A376}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {9651F24A-FFB6-4A18-A696-5C1D5F39A376}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {9651F24A-FFB6-4A18-A696-5C1D5F39A376}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Deprecated/SQLParser/SQLParser/PSSnapin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Management.Automation; 5 | using System.ComponentModel; 6 | 7 | namespace SQLParser 8 | { 9 | [RunInstaller(true)] 10 | public class SQLParserSnapIn : PSSnapIn 11 | { 12 | public override string Name 13 | { 14 | get { return "SQLParser"; } 15 | } 16 | public override string Vendor 17 | { 18 | get { return ""; } 19 | } 20 | public override string VendorResource 21 | { 22 | get { return "SQLParser,"; } 23 | } 24 | public override string Description 25 | { 26 | get { return "Registers the CmdLets and Providers in this assembly"; } 27 | } 28 | public override string DescriptionResource 29 | { 30 | get { return "SQLParser,Registers the CmdLets and Providers in this assembly"; } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Test-SqlConn.ps1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 15 | # -------------------------------------------------------------------------- 16 | foreach ($i in $input) { 17 | $connectionString = "Data Source=$i;Integrated Security=true;Initial Catalog=master;Connect Timeout=3;" 18 | $sqlConn = new-object ("Data.SqlClient.SqlConnection") $connectionString 19 | trap {Write-Error "Cannot connect to $i.";continue} $sqlConn.Open() 20 | if ($sqlConn.State -eq 'Open') {$sqlConn.Close();$i} 21 | } 22 | 23 | 24 | -------------------------------------------------------------------------------- /Deprecated/OracleClient/OracleClient.psm1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 13 | # --------------------------------------------------------------------------- 14 | 15 | 16 | [System.Reflection.Assembly]::LoadWithPartialName("Oracle.DataAccess") 17 | [System.Reflection.Assembly]::LoadWithPartialName("System.Data.OracleClient") 18 | 19 | . $psScriptRoot\new-connection.ps1 20 | . $psScriptRoot\invoke-query.ps1 21 | . $psScriptRoot\get-commandresults.ps1 22 | . $psScriptRoot\OracleBulkcopy.ps1 23 | 24 | 25 | export-modulemember new-oracle_connection 26 | # export-modulemember -function invoke-sql 27 | export-modulemember -function invoke-oracle_query, ConvertTo-oracleDataSource, Invoke-OracleBulkcopy 28 | # export-modulemember -function invoke-storedprocedure 29 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/Repl.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/SSIS.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Deprecated/PBM/readme.txt: -------------------------------------------------------------------------------- 1 | 1. Create an empty SQL Server database (or use existing database). For example "MDW" 2 | 2. Run the 2 table creation scripts dbo.PolicyEval.Table and dbo.PolicyEvalError.Table.sql 3 | 3. Copy PBM PowerShell module folder to a directory listed in your $env:psmodulepath 4 | 4. Modify PBM.psm1 Script-level variables to point to the server and database created in step 1 5 | 5. Import Policies from Policies folder or use your existing policy 6 | 6. Ensure policies have a Category set 7 | 8 | In SSMS >> Policy Management >> Policies >> >> Select Description Tabl 9 | 10 | 7. Source the module in sqlps (The SQL Server Mini-Shell). For example: 11 | 12 | . C:\Users\u00\Documents\WindowsPowerShell\Modules\PBM\PBM.psm1 13 | 14 | 8. Run Import-PolicyEvaluation specifying a ConfigurationGroup (the CMS Server Registration Group) and PolicyCategoryFilter (as defined in step 6) 15 | For example: 16 | 17 | Import-PolicyEvaluation "XA" "EPM: Configuration" 18 | 19 | 9. Optionally create SQL Agent job for each configuration group with the following PowerShell Job Step: 20 | 21 | . C:\\PBM.psm1 22 | Import-PolicyEvaluation "XA" "EPM: Configuration" 23 | -------------------------------------------------------------------------------- /Deprecated/Reports/SQLPSX/SQLPSX.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{F14B399A-7131-4C87-9E4B-1186C45EF12D}") = "SQLPSX", "SQLPSX\SQLPSX.rptproj", "{A50ED531-0F73-4BFE-9368-F14C0C0A0132}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Default = Debug|Default 9 | DebugLocal|Default = DebugLocal|Default 10 | Production|Default = Production|Default 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.Debug|Default.ActiveCfg = Debug 14 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.Debug|Default.Build.0 = DebugLocal 15 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.Debug|Default.Deploy.0 = DebugLocal 16 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.DebugLocal|Default.ActiveCfg = DebugLocal 17 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.DebugLocal|Default.Build.0 = DebugLocal 18 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.Production|Default.ActiveCfg = Production 19 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.Production|Default.Build.0 = Production 20 | {A50ED531-0F73-4BFE-9368-F14C0C0A0132}.Production|Default.Deploy.0 = Production 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Deprecated/Reports/PBM/PBM.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{F14B399A-7131-4C87-9E4B-1186C45EF12D}") = "PBM", "PBM.rptproj", "{EC0A8C85-7431-41A2-B238-0D7E6659A1D2}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Default = Debug|Default 9 | DebugLocal|Default = DebugLocal|Default 10 | Release|Default = Release|Default 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.Debug|Default.ActiveCfg = Debug 14 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.Debug|Default.Build.0 = DebugLocal 15 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.Debug|Default.Deploy.0 = DebugLocal 16 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.DebugLocal|Default.ActiveCfg = DebugLocal 17 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.DebugLocal|Default.Build.0 = DebugLocal 18 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.DebugLocal|Default.Deploy.0 = DebugLocal 19 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.Release|Default.ActiveCfg = Release 20 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.Release|Default.Build.0 = Release 21 | {EC0A8C85-7431-41A2-B238-0D7E6659A1D2}.Release|Default.Deploy.0 = Release 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/Get-TableAlias.ps1: -------------------------------------------------------------------------------- 1 | ###################### 2 | function Resolve-TableAlias 3 | { 4 | 5 | $sqlList = $psise.CurrentFile.Editor.Text -split '\n' 6 | 7 | $obj = '[\w]+|\"(?:[^\"]|\"\")+\"|\[(?:[^\]]|\]\])+\]' 8 | $re = "($obj)\.($obj)?\.($obj)(\s+.*$)?|(?:($obj)\.)?($obj)(\s+.*$)?" 9 | $from = '(\bFROM\b|\bJOIN\b|\bUPDATE\b|\bINSERT\b(?:\s+INTO\b)?|\bDELETE\b)\s+(.*$)' 10 | 11 | foreach ($sql in $sqlList) 12 | { 13 | if ($sql -match $from) 14 | { 15 | $expression = $matches[2] 16 | $expression -match $re | out-null 17 | $db = $matches[1] -replace '\[|\]|"' 18 | $schema = $(invoke-coalesce $matches[2] $matches[5]) -replace '\[|\]|"' 19 | $dbObj = $(invoke-coalesce $matches[3] $matches[6]) -replace '\[|\]|"' 20 | $rest = $(invoke-coalesce $matches[4] $matches[7]) 21 | if ($($rest -replace "'") -match "(\s+AS)?\s+(\w+)") 22 | { $alias = $matches[2] } 23 | 24 | new-object PSObject -Property @{ 25 | Database = $db 26 | Schema = $schema 27 | Object = $dbObj 28 | Alias = $alias 29 | } 30 | } 31 | } 32 | 33 | } #Resolve-TableAlias 34 | 35 | ###################### 36 | function Get-TableAlias 37 | { 38 | $global:TableAlias = Resolve-TableAlias 39 | $global:TableAlias 40 | 41 | } #Get-TableAlias 42 | -------------------------------------------------------------------------------- /Deprecated/SQLParser/SQLParser/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SQLParser")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SQLParser")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("b4c69a47-58d3-4e10-b38f-0c5d79724154")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /Deprecated/SQLPSX/SQLPSX.psm1: -------------------------------------------------------------------------------- 1 | #----------------------------------------------------------------# 2 | # SQLPSX.PSM1 3 | # Author: Bernd, 05/18/2010 4 | # 5 | # Comment: Replaces Max version of the SQLPSX.psm1 6 | #----------------------------------------------------------------# 7 | 8 | $PSXloadModules = @() 9 | $PSXloadModules = "SQLmaint","SQLServer","Agent","Repl","SSIS","Showmbrs" 10 | $PSXloadModules += "SQLParser","adolib" 11 | if ($psIse) { 12 | $PSXloadModules += "SQLIse" 13 | } 14 | 15 | $oraAssembly = [System.Reflection.Assembly]::LoadWithPartialName("Oracle.DataAccess") 16 | if ($oraAssembly) { 17 | $PSXloadModules += "OracleClient" 18 | if ($psIse) { 19 | $PSXloadModules += "OracleIse" 20 | } 21 | } 22 | else { Write-Host -BackgroundColor Black -ForegroundColor Yellow "No Oracle found" } 23 | 24 | 25 | $PSXremoveModules = $PSXloadModules[($PSXloadModules.count)..0] 26 | 27 | $mInfo = $MyInvocation.MyCommand.ScriptBlock.Module 28 | $mInfo.OnRemove = { 29 | foreach($PSXmodule in $PSXremoveModules){ 30 | if (gmo $PSXmodule) 31 | { 32 | Write-Host -BackgroundColor Black -ForegroundColor Yellow "Removing SQLPSX Module - $PSXModule" 33 | Remove-Module $PSXmodule 34 | } 35 | } 36 | 37 | Write-Host -BackgroundColor Black -ForegroundColor Yellow "$($MyInvocation.MyCommand.ScriptBlock.Module.name) removed on $(Get-Date)" 38 | } 39 | 40 | foreach($PSXmodule in $PSXloadModules){ 41 | Write-Host -BackgroundColor Black -ForegroundColor Yellow "Loading SQLPSX Module - $PSXModule" 42 | Import-Module $PSXmodule -global 43 | } 44 | Write-Host -BackgroundColor Black -ForegroundColor Yellow "Loading SQLPSX Modules is Done!" 45 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/defaultopts.ps1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 10 | # --------------------------------------------------------------------------- 11 | @{ 12 | MultilineWherePredicatesList = $true 13 | NewLineBeforeGroupByClause = $true 14 | NewLineBeforeHavingClause = $true 15 | PoshMode = $true 16 | IndentViewBody = $false 17 | AlignColumnDefinitionFields = $false 18 | NewLineBeforeOutputClause = $true 19 | AlignClauseBodies = $false 20 | AlignSetClauseItem = $false 21 | AsKeywordOnOwnLine = $false 22 | IncludeSemicolons = $false 23 | NewLineBeforeOpenParenthesisInMultilineList = $true 24 | MultilineInsertSourcesList = $true 25 | MultilineSelectElementsList = $true 26 | QuotedIdentifierOff = $false 27 | Results = "To Grid" 28 | OutputVariable = $null 29 | NewLineBeforeCloseParenthesisInMultilineList = $true 30 | NewLineBeforeWhereClause = $true 31 | NewLineBeforeFromClause = $true 32 | MultilineSetClauseItems = $true 33 | MultilineInsertTargetsList = $true 34 | NewLineBeforeJoinClause = $true 35 | NewLineBeforeOrderByClause = $true 36 | KeywordCasing = "Uppercase" 37 | IndentationSize = 4 38 | IndentSetClause = $false 39 | SqlVersion = "Sql100" 40 | MultilineViewColumnsList = $true 41 | } 42 | -------------------------------------------------------------------------------- /Modules/Repl/replscriptopts.ps1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 10 | # --------------------------------------------------------------------------- 11 | @{ 12 | Deletion = $false 13 | Creation = $true 14 | DisableReplicationDB = $false 15 | EnableReplicationDB = $false 16 | IncludeAgentProfiles = $false 17 | IncludeAll = $false 18 | IncludeArticles = $false 19 | IncludeChangeDestinationDataTypes = $false 20 | IncludeCreateDistributionAgent = $false 21 | IncludeCreateLogreaderAgent = $false 22 | IncludeCreateMergeAgent = $false 23 | IncludeCreateQueuereaderAgent = $false 24 | IncludeCreateSnapshotAgent = $false 25 | IncludeDisableReplicationDB = $false 26 | IncludeDistributionPublishers = $false 27 | IncludeEnableReplicationDB = $false 28 | IncludeGo = $false 29 | IncludeInstallDistributor = $false 30 | IncludeMergeDynamicSnapshotJobs = $false 31 | IncludeMergeJoinFilters = $false 32 | IncludeMergePartitions = $false 33 | IncludeMergePublicationActivation = $false 34 | IncludePartialSubscriptions = $false 35 | IncludePublicationAccesses = $false 36 | IncludePublications = $false 37 | IncludePublisherSideSubscriptions = $false 38 | IncludePullSubscriptions = $false 39 | IncludeRegisteredSubscribers = $false 40 | IncludeReplicationJobs = $false 41 | IncludeSubscriberSideSubscriptions = $false 42 | IncludeUninstallDistributor = $false 43 | InstallDistributor = $false 44 | None = $false 45 | UninstallDistributor = $false 46 | } 47 | -------------------------------------------------------------------------------- /Modules/SSIS/SSIS.Format.ps1xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Table 6 | 7 | Microsoft.SqlServer.Dts.Runtime.Package 8 | 9 | 10 | 11 | 12 | 13 | 14 | 30 15 | left 16 | 17 | 18 | 19 | 20 | 30 21 | left 22 | 23 | 24 | 25 | 26 | 22 27 | left 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | DisplayName 38 | 39 | 40 | 41 | Name 42 | 43 | 44 | 45 | $_.CreationDate.ToString("g") 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/OracleClient.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Deprecated/OracleIse/defaultopts.ps1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 10 | # --------------------------------------------------------------------------- 11 | @{ 12 | # MultilineWherePredicatesList = $true 13 | # NewLineBeforeGroupByClause = $true 14 | # NewLineBeforeHavingClause = $true 15 | PoshMode = $true 16 | # IndentViewBody = $false 17 | # AlignColumnDefinitionFields = $false 18 | # NewLineBeforeOutputClause = $true 19 | # AlignClauseBodies = $false 20 | # AlignSetClauseItem = $false 21 | # AsKeywordOnOwnLine = $false 22 | # IncludeSemicolons = $false 23 | # NewLineBeforeOpenParenthesisInMultilineList = $true 24 | # MultilineInsertSourcesList = $true 25 | # MultilineSelectElementsList = $true 26 | # QuotedIdentifierOff = $false 27 | Results = "To Grid" 28 | # OutputVariable = $null 29 | # NewLineBeforeCloseParenthesisInMultilineList = $true 30 | # NewLineBeforeWhereClause = $true 31 | # NewLineBeforeFromClause = $true 32 | # MultilineSetClauseItems = $true 33 | # MultilineInsertTargetsList = $true 34 | # NewLineBeforeJoinClause = $true 35 | # NewLineBeforeOrderByClause = $true 36 | # KeywordCasing = "Uppercase" 37 | # IndentationSize = 4 38 | # IndentSetClause = $false 39 | # SqlVersion = "Sql100" 40 | # MultilineViewColumnsList = $true 41 | } 42 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/ISECreamBasic.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/SQLParser.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/Get-TabObjectList.ps1: -------------------------------------------------------------------------------- 1 | function Get-TabObjectList 2 | { 3 | $db = @" 4 | SELECT db_name() AS 'Database'; 5 | "@ 6 | $col = @" 7 | SELECT TABLE_CATALOG AS 'Database', TABLE_SCHEMA AS 'Schema', TABLE_NAME AS 'Object', 8 | COLUMN_NAME AS 'Column' 9 | FROM INFORMATION_SCHEMA.COLUMNS 10 | WHERE TABLE_NAME NOT IN ('dtproperties','sysdiagrams') 11 | AND OBJECTPROPERTY(OBJECT_ID('['+TABLE_SCHEMA+'].['+TABLE_NAME+']'),'IsMSShipped') = 0 12 | ORDER BY TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME; 13 | "@ 14 | 15 | $tbl = @" 16 | SELECT TABLE_CATALOG AS 'Database', TABLE_SCHEMA AS 'Schema', TABLE_NAME AS 'Object' 17 | FROM INFORMATION_SCHEMA.TABLES 18 | WHERE OBJECTPROPERTY(OBJECT_ID('['+TABLE_SCHEMA+'].['+TABLE_NAME+']'),'IsMSShipped') = 0 19 | AND TABLE_NAME NOT IN ('dtproperties','sysdiagrams') 20 | UNION 21 | SELECT ROUTINE_CATALOG, ROUTINE_SCHEMA, ROUTINE_NAME 22 | FROM INFORMATION_SCHEMA.ROUTINES 23 | WHERE ROUTINE_TYPE = 'FUNCTION' 24 | ORDER BY [Database], [Schema], [Object]; 25 | "@ 26 | 27 | $rtn = @" 28 | SELECT ROUTINE_CATALOG AS 'Database', ROUTINE_SCHEMA AS 'Schema', ROUTINE_NAME AS 'Object' 29 | FROM INFORMATION_SCHEMA.ROUTINES 30 | WHERE ROUTINE_TYPE = 'PROCEDURE' 31 | ORDER BY ROUTINE_SCHEMA, ROUTINE_NAME; 32 | "@ 33 | 34 | $prm = @" 35 | SELECT SPECIFIC_CATALOG AS 'Database', SPECIFIC_SCHEMA AS 'Schema', SPECIFIC_NAME AS 'Object', 36 | PARAMETER_NAME AS 'Parameter' 37 | FROM INFORMATION_SCHEMA.PARAMETERS 38 | WHERE PARAMETER_NAME IS NOT NULL AND PARAMETER_NAME != '' 39 | ORDER BY SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME, PARAMETER_NAME; 40 | "@ 41 | 42 | $sch = @" 43 | SELECT CATALOG_NAME AS 'Database', SCHEMA_NAME AS 'Schema' 44 | FROM INFORMATION_SCHEMA.SCHEMATA 45 | ORDER BY SCHEMA_NAME 46 | "@ 47 | $cmd = @" 48 | $db 49 | $tbl 50 | $col 51 | $rtn 52 | $prm 53 | $sch 54 | "@ 55 | 56 | $global:dsDbObjects = New-Object system.Data.DataSet 57 | $da = New-Object system.Data.SqlClient.SqlDataAdapter($cmd,$conn) 58 | 59 | [void]$da.TableMappings.Add("Table", "Database") 60 | [void]$da.TableMappings.Add("Table1", "Table") 61 | [void]$da.TableMappings.Add("Table2", "Column") 62 | [void]$da.TableMappings.Add("Table3", "Routine") 63 | [void]$da.TableMappings.Add("Table4", "Parameter") 64 | [void]$da.TableMappings.Add("Table5", "Schema") 65 | 66 | [void]$da.Fill($global:dsDbObjects) 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Deprecated/SQLParser/SQLParser/TestSqlScript.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Management.Automation; 5 | using System.Collections; 6 | using Microsoft.Data.Schema.ScriptDom; 7 | using Microsoft.Data.Schema.ScriptDom.Sql; 8 | using System.Data; 9 | using System.Linq; 10 | using System.IO; 11 | 12 | namespace SQLParser 13 | { 14 | [Cmdlet("Test", "SqlScript")] 15 | public class TestSqlScript : Cmdlet 16 | { 17 | 18 | #region Parameters 19 | private string inputScript; 20 | private bool quotedIdentifierOff; 21 | private SqlVersion sqlVersion = SqlVersion.Sql100; 22 | 23 | [Parameter(Position = 1, Mandatory = true, ValueFromPipeline = true)] 24 | [ValidateNotNullOrEmpty] 25 | public string InputScript 26 | { 27 | get 28 | { 29 | return inputScript; 30 | } 31 | set 32 | { 33 | inputScript = value; 34 | } 35 | } 36 | 37 | [Parameter(Position = 2, Mandatory = false)] 38 | public SwitchParameter QuotedIdentifierOff 39 | { 40 | get 41 | { 42 | return quotedIdentifierOff; 43 | } 44 | set 45 | { 46 | quotedIdentifierOff = value; 47 | } 48 | } 49 | 50 | [Parameter(Position = 3, Mandatory = false)] 51 | [ValidateNotNullOrEmpty] 52 | public SqlVersion SqlVersion 53 | { 54 | get 55 | { 56 | return sqlVersion; 57 | } 58 | set 59 | { 60 | sqlVersion = value; 61 | } 62 | } 63 | 64 | #endregion 65 | 66 | protected override void ProcessRecord() 67 | { 68 | bool quotedIdentifier; 69 | 70 | if (quotedIdentifierOff) 71 | { 72 | quotedIdentifier = false; 73 | } 74 | else 75 | { 76 | quotedIdentifier = true; 77 | } 78 | 79 | try 80 | { 81 | SQLParser parser = new SQLParser(sqlVersion, quotedIdentifier, inputScript); 82 | WriteObject(true); 83 | } 84 | catch (Exception ex) 85 | { 86 | WriteObject(false); 87 | ErrorRecord errorRecord = new ErrorRecord(ex, "InvalidSQLScript", ErrorCategory.InvalidData, ex.Message); 88 | WriteError(errorRecord); 89 | } 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /Deprecated/ISECreamBasic/license.txt: -------------------------------------------------------------------------------- 1 | Microsoft Public License (Ms-PL) 2 | 3 | This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 4 | 5 | 1. Definitions 6 | 7 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. 8 | 9 | A "contribution" is the original software, or any additions or changes to the software. 10 | 11 | A "contributor" is any person that distributes its contribution under this license. 12 | 13 | "Licensed patents" are a contributor's patent claims that read directly on its contribution. 14 | 15 | 2. Grant of Rights 16 | 17 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 18 | 19 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 20 | 21 | 3. Conditions and Limitations 22 | 23 | (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 24 | 25 | (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. 26 | 27 | (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. 28 | 29 | (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 30 | 31 | (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. -------------------------------------------------------------------------------- /License.txt: -------------------------------------------------------------------------------- 1 | Microsoft Public License (Ms-PL) 2 | Microsoft Public License (Ms-PL) 3 | 4 | This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 5 | 6 | 1. Definitions 7 | 8 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. 9 | 10 | A "contribution" is the original software, or any additions or changes to the software. 11 | 12 | A "contributor" is any person that distributes its contribution under this license. 13 | 14 | "Licensed patents" are a contributor's patent claims that read directly on its contribution. 15 | 16 | 2. Grant of Rights 17 | 18 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 19 | 20 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 21 | 22 | 3. Conditions and Limitations 23 | 24 | (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 25 | 26 | (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. 27 | 28 | (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. 29 | 30 | (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 31 | 32 | (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Get-InvalidLogins.ps1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 20 | # --------------------------------------------------------------------------- 21 | param($sqlserver) 22 | 23 | ####################### 24 | function New-InvalidLogin 25 | { 26 | Write-Verbose "New-InvalidLogin" 27 | 28 | #__SQLPSXInvalidLogin is a session variable, so only create if it doesn't exist 29 | if (!(Test-Path Variable:__SQLPSXInvalidLogin)) 30 | { Set-Variable __SQLPSXInvalidLogin @{} -Scope Global -Option AllScope -Description "SQLPSX variable" } 31 | 32 | } #New-InvalidLogin 33 | 34 | 35 | ####################### 36 | function processInvalidLogin 37 | { 38 | param($sqlserver) 39 | 40 | Write-Verbose "processInvalidLogins $sqlserver" 41 | 42 | foreach ($r in Get-SqlData $sqlserver 'master' 'sp_validatelogins') 43 | { 44 | $NTLogin = $r.'NT Login' 45 | $SID = new-object security.principal.securityidentifier($r.SID,0) 46 | $newAccount = $null 47 | trap { $null; continue } $newAccount = $SID.translate([system.security.principal.NTAccount]) 48 | if ($newAccount -eq $null) { 49 | $isOrphaned = $true 50 | $isRenamed = $false 51 | } 52 | else { 53 | $isOrphaned = $false 54 | $isRenamed = $true 55 | } 56 | if ($NTLogin -ne $newAccount) { 57 | new-object psobject | 58 | add-member -pass NoteProperty NTLogin $NTLogin | 59 | add-Member -pass NoteProperty TSID $SID | 60 | add-Member -pass NoteProperty Server $sqlserver | 61 | add-Member -pass NoteProperty IsOrphaned $isOrphaned | 62 | add-Member -pass NoteProperty IsRenamed $isRenamed | 63 | add-Member -pass NoteProperty NewNTAccount $newAccount 64 | } 65 | } 66 | 67 | } #processInvalidLogin 68 | 69 | #Main 70 | New-InvalidLogin 71 | 72 | if (!($__SQLPSXInvalidLogin.Contains($sqlserver))) 73 | { 74 | $__SQLPSXInvalidLogin[$sqlserver] = processInvalidLogin $sqlserver 75 | } 76 | 77 | return $__SQLPSXInvalidLogin[$sqlserver] 78 | 79 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/License.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}} 2 | {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs22 Microsoft Public License (Ms-PL)\par 3 | This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.\par 4 | 1. Definitions\par 5 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.\par 6 | A "contribution" is the original software, or any additions or changes to the software.\par 7 | A "contributor" is any person that distributes its contribution under this license.\par 8 | "Licensed patents" are a contributor's patent claims that read directly on its contribution.\par 9 | 2. Grant of Rights\par 10 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.\par 11 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.\par 12 | 3. Conditions and Limitations\par 13 | (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.\par 14 | (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.\par 15 | (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.\par 16 | (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.\par 17 | (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. \par 18 | } 19 | -------------------------------------------------------------------------------- /Deprecated/Reports/PBM/PBM.rptproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | $base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yLzIiIHhtbG5zOmRkbDEwMF8xMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDA4L2VuZ2luZS8xMDAvMTAwIiB4bWxuczpkZGwyMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAiIHhtbG5zOmRkbDIwMF8yMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAvMjAwIiB4bWxuczpkd2Q9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vRGF0YVdhcmVob3VzZS9EZXNpZ25lci8xLjAiPg0KICA8RW5hYmxlZD5mYWxzZTwvRW5hYmxlZD4NCiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg== 4 | 5 | 6 | PolicyDataDS.rds 7 | PolicyDataDS.rds 8 | 9 | 10 | 11 | 12 | 13 | PBMDashBoard.rdl 14 | PBMDashBoard.rdl 15 | 16 | 17 | FailedPolicyReport.rdl 18 | FailedPolicyReport.rdl 19 | 20 | 21 | 22 | 23 | Debug 24 | Win32 25 | 26 | bin\Debug 27 | SSRS2008 28 | PBM 29 | Data Sources 30 | 31 | 32 | 33 | DebugLocal 34 | Win32 35 | 36 | bin\DebugLocal 37 | SSRS2008 38 | PBM 39 | Data Sources 40 | 41 | 42 | 43 | Release 44 | Win32 45 | 46 | bin\Release 47 | SSRS2008 48 | PBM 49 | Data Sources 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Modules/PBM/PBM.psd1: -------------------------------------------------------------------------------- 1 | # 2 | # Module manifest for module 'PBM' 3 | # 4 | # Generated by: Patrick Keisler 5 | # 6 | # Generated on: 05/14/2017 7 | # 8 | 9 | @{ 10 | 11 | # Script module or binary module file associated with this manifest. 12 | ModuleToProcess = 'PBM.psm1' 13 | 14 | # Version number of this module. 15 | ModuleVersion = '1.1' 16 | 17 | # ID used to uniquely identify this module 18 | GUID = '3dda1495-1bcd-4e2a-b931-69c5e126f07d' 19 | 20 | # Author of this module 21 | Author = 'Patrick Keisler' 22 | 23 | # Company or vendor of this module 24 | CompanyName = 'SQLPSX' 25 | 26 | # Copyright statement for this module 27 | Copyright = '(c) Patrick Keisler' 28 | 29 | # Description of the functionality provided by this module 30 | Description = 'Defines function wrappers around the classes to get access to a PBM server.' 31 | 32 | # Minimum version of the Windows PowerShell engine required by this module 33 | # PowerShellVersion = '' 34 | 35 | # Name of the Windows PowerShell host required by this module 36 | # PowerShellHostName = '' 37 | 38 | # Minimum version of the Windows PowerShell host required by this module 39 | # PowerShellHostVersion = '' 40 | 41 | # Minimum version of Microsoft .NET Framework required by this module 42 | # DotNetFrameworkVersion = '' 43 | 44 | # Minimum version of the common language runtime (CLR) required by this module 45 | # CLRVersion = '' 46 | 47 | # Processor architecture (None, X86, Amd64) required by this module 48 | # ProcessorArchitecture = '' 49 | 50 | # Modules that must be imported into the global environment prior to importing this module 51 | # RequiredModules = @() 52 | 53 | # Assemblies that must be loaded prior to importing this module 54 | # RequiredAssemblies = @() 55 | 56 | # Script files (.ps1) that are run in the caller's environment prior to importing this module. 57 | # ScriptsToProcess = @() 58 | 59 | # Type files (.ps1xml) to be loaded when importing this module 60 | # TypesToProcess = @() 61 | 62 | # Format files (.ps1xml) to be loaded when importing this module 63 | # FormatsToProcess = @() 64 | 65 | # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess 66 | # NestedModules = @() 67 | 68 | # Functions to export from this module 69 | FunctionsToExport = '*' 70 | 71 | # Cmdlets to export from this module 72 | CmdletsToExport = '*' 73 | 74 | # Variables to export from this module 75 | VariablesToExport = '*' 76 | 77 | # Aliases to export from this module 78 | AliasesToExport = '*' 79 | 80 | # List of all modules packaged with this module 81 | # ModuleList = @() 82 | 83 | # List of all files packaged with this module 84 | # FileList = @() 85 | 86 | # Private data to pass to the module specified in RootModule/ModuleToProcess 87 | # PrivateData = '' 88 | 89 | # HelpInfo URI of this module 90 | # HelpInfoURI = '' 91 | 92 | # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. 93 | # DefaultCommandPrefix = '' 94 | 95 | } 96 | 97 | -------------------------------------------------------------------------------- /Deprecated/SQLParser/SQLParser/SQLScripter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Management.Automation; 5 | using System.Collections; 6 | using Microsoft.Data.Schema.ScriptDom; 7 | using Microsoft.Data.Schema.ScriptDom.Sql; 8 | using System.Data; 9 | using System.Linq; 10 | using System.IO; 11 | 12 | namespace SQLParser 13 | { 14 | class SQLScripter 15 | { 16 | private String script; 17 | 18 | public SQLScripter (SqlVersion sqlVersion, SqlScriptGeneratorOptions options, bool quotedIdentifier, String inputScript) 19 | { 20 | switch (sqlVersion) 21 | { 22 | case SqlVersion.Sql80: 23 | SQLScripter100(options, quotedIdentifier, inputScript); 24 | break; 25 | case SqlVersion.Sql90: 26 | SQLScripter100(options, quotedIdentifier, inputScript); 27 | break; 28 | case SqlVersion.Sql100: 29 | SQLScripter100(options, quotedIdentifier, inputScript); 30 | break; 31 | } 32 | } 33 | 34 | private void SQLScripter100 (SqlScriptGeneratorOptions options, bool quotedIdentifier, String inputScript) 35 | { 36 | Sql100ScriptGenerator scripter = new Sql100ScriptGenerator(options); 37 | Generate(scripter, quotedIdentifier, inputScript); 38 | } 39 | 40 | private void SQLScripter90(SqlScriptGeneratorOptions options, bool quotedIdentifier, String inputScript) 41 | { 42 | Sql90ScriptGenerator scripter = new Sql90ScriptGenerator(options); 43 | Generate(scripter, quotedIdentifier, inputScript); 44 | } 45 | 46 | private void SQLScripter80(SqlScriptGeneratorOptions options, bool quotedIdentifier, String inputScript) 47 | { 48 | Sql80ScriptGenerator scripter = new Sql80ScriptGenerator(options); 49 | Generate(scripter, quotedIdentifier, inputScript); 50 | } 51 | 52 | private void Generate(Sql100ScriptGenerator scripter, bool quotedIdentifier, String inputScript) 53 | { 54 | SQLParser parser = new SQLParser(SqlVersion.Sql100, quotedIdentifier, inputScript); 55 | scripter.GenerateScript(parser.Fragment, out script); 56 | } 57 | 58 | private void Generate(Sql90ScriptGenerator scripter, bool quotedIdentifier, String inputScript) 59 | { 60 | SQLParser parser = new SQLParser(SqlVersion.Sql90, quotedIdentifier, inputScript); 61 | scripter.GenerateScript(parser.Fragment, out script); 62 | } 63 | 64 | private void Generate(Sql80ScriptGenerator scripter, bool quotedIdentifier, String inputScript) 65 | { 66 | SQLParser parser = new SQLParser(SqlVersion.Sql80, quotedIdentifier, inputScript); 67 | scripter.GenerateScript(parser.Fragment, out script); 68 | } 69 | 70 | public String Script 71 | { 72 | get { return script; } 73 | } 74 | 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Deprecated/Library/LibraryShowMbrs.ps1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 14 | # --------------------------------------------------------------------------- 15 | ####################### 16 | function New-ShowMbrs 17 | { 18 | Write-Verbose "New-ShowMbrs" 19 | 20 | #__SQLPSXGroupUser is a session variable, so only create if it doesn't exist 21 | if (!(Test-Path Variable:__SQLPSXGroupUser)) 22 | { Set-Variable __SQLPSXGroupUser @{} -Scope Global -Option AllScope -Description "SQLPSX variable" } 23 | 24 | } #New-ShowMbrs 25 | 26 | ####################### 27 | function Set-ShowMbrs 28 | { 29 | param($account,$groupkey) 30 | 31 | Write-Verbose "Set-ShowMbrs $account $groupkey" 32 | 33 | if (!($__SQLPSXGroupUser.Contains($groupkey))) 34 | { $__SQLPSXGroupUser[$groupkey] = @($account) } 35 | elseif (!($__SQLPSXGroupUser[$groupkey] -contains $account)) 36 | { $__SQLPSXGroupUser[$groupkey] += @($account) } 37 | 38 | } # Set-ShowMbrs 39 | 40 | ####################### 41 | function Get-GroupUser 42 | { 43 | 44 | param($group,$groupkey = $group) 45 | 46 | Write-Verbose "Get-GroupUser $group $groupkey" 47 | 48 | #If we haven't already enumerated the group this Powershell session 49 | if (!($__SQLPSXGroupUser[$groupkey] -contains $group)) 50 | { 51 | if ($__SQLPSXGroupUser.Contains($group)) 52 | { Set-ShowMbrs $__SQLPSXGroupUser[$group] $groupkey } 53 | else 54 | { 55 | Set-ShowMbrs $group $groupkey 56 | 57 | $domain = $($group.ToString()).split("\")[0] 58 | $groupname = $($group.ToString()).split("\")[1] 59 | 60 | if ($domain -ne 'NT AUTHORITY' -and $domain -ne 'BUILTIN') 61 | { 62 | 63 | $groupUser= [ADSI]"WinNT://$($domain + '/' + $groupname),group" 64 | $groupUser.psbase.Invoke("Members") | foreach { 65 | $name = $_.GetType().InvokeMember("Name", 'GetProperty', $null, $_, $null) 66 | $type = $_.GetType().InvokeMember("Class", 'GetProperty', $null, $_, $null) 67 | $path = $_.GetType().InvokeMember("AdsPath", 'GetProperty', $null, $_, $null) 68 | $arPath = $path.Split("/") 69 | $domain = $arPath[$arPath.length - 2] 70 | $account = $domain + "\" + $name 71 | if ($type -eq 'Group') 72 | { Get-GroupUser $account $groupkey } 73 | else 74 | { Set-ShowMbrs $account $groupkey } 75 | } 76 | 77 | } 78 | } 79 | } 80 | 81 | } #Get-GroupUser 82 | 83 | ####################### 84 | function Get-ShowMbrs 85 | { 86 | param($group=$(throw '$group is required')) 87 | 88 | Write-Verbose "Get-ShowMbrs $group" 89 | 90 | New-ShowMbrs 91 | 92 | Get-GroupUser $group 93 | 94 | return $__SQLPSXGroupUser[$group] 95 | 96 | } #Get-ShowMbrs 97 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/OracleIse.wxs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Run-SmoToCsvFile.ps1: -------------------------------------------------------------------------------- 1 | 2 | # --------------------------------------------------------------------------- 3 | ### 19 | # --------------------------------------------------------------------------- 20 | 21 | $scriptRoot = Split-Path (Resolve-Path $myInvocation.MyCommand.Path) 22 | #. $scriptRoot\LibrarySmo.ps1 23 | #Set-Alias Test-SqlConn $scriptRoot\Test-SqlConn.ps1 24 | 25 | $maxThread = 2 26 | $ServerList = New-Object System.Collections.ArrayList 27 | $SQLPSXServer = 'Z002\SQL2K8' 28 | $SQLPSXDb = 'SQLPSX' 29 | $SQLPSXDir = "C:\SQLPSX\Data\" 30 | if (!(Test-Path $SQLPSXDir)) {new-item $SQLPSXDir -ItemType "dir"} 31 | 32 | ####################### 33 | function Invoke-Sqlcmd2 34 | { 35 | param( 36 | [string]$ServerInstance, 37 | [string]$Database, 38 | [string]$Query, 39 | [Int32]$QueryTimeout=30 40 | ) 41 | 42 | $conn=new-object System.Data.SqlClient.SQLConnection 43 | $conn.ConnectionString="Server={0};Database={1};Integrated Security=True" -f $ServerInstance,$Database 44 | $conn.Open() 45 | $cmd=new-object system.Data.SqlClient.SqlCommand($Query,$conn) 46 | $cmd.CommandTimeout=$QueryTimeout 47 | $ds=New-Object system.Data.DataSet 48 | $da=New-Object system.Data.SqlClient.SqlDataAdapter($cmd) 49 | [void]$da.fill($ds) 50 | $conn.Close() 51 | $ds.Tables[0] 52 | } #Invoke-Sqlcmd2 53 | 54 | ####################### 55 | function Get-SqlList 56 | { 57 | Invoke-Sqlcmd2 $SQLPSXServer $SQLPSXDb "SELECT Server FROM dbo.SqlServer WHERE IsEnabled = 'true'" | foreach {$_.Server} | 58 | foreach { $ServerList.Add("$_") > $null } 59 | 60 | }# Get-SqlList 61 | 62 | ####################### 63 | function LaunchThread 64 | { 65 | param($sqlserver) 66 | 67 | $outfile = $sqlserver -replace '\\','_' 68 | 69 | $StartInfo = new-object System.Diagnostics.ProcessStartInfo 70 | $StartInfo.FileName = "$pshome\powershell.exe" 71 | $StartInfo.Arguments = " -NoProfile -Command $scriptRoot\Write-SmoToCsvFile.ps1 $sqlserver 2>&1 >> $SQLPSXDir$outfile.err" 72 | $StartInfo.WorkingDirectory = "$scriptRoot" 73 | $StartInfo.LoadUserProfile = $true 74 | $StartInfo.UseShellExecute = $true 75 | [System.Diagnostics.Process]::Start($StartInfo) > $null 76 | 77 | }# LaunchThread 78 | 79 | ####################### 80 | Get-SqlList 81 | 82 | while ($ServerList.Count -gt 0) 83 | { 84 | if ($(get-process | where {$_.ProcessName -eq 'Powershell' -and $_.Id -ne $PID} | measure-object).count -lt $maxThread) 85 | { $server = $ServerList[0] 86 | #Launch Another Thread 87 | LaunchThread $server 88 | #Set the Server as processed 89 | $ServerList.Remove("$server") 90 | } 91 | else 92 | { #Sleep for 5 minutes 93 | [System.Threading.Thread]::Sleep(300000) 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /Deprecated/SQLPSXInstaller/sqlpsxinstaller.ps1: -------------------------------------------------------------------------------- 1 | $env:SQLPSX = "C:\Users\u00\Projects\SQLPSX_2.3.2.1\Modules" 2 | cd $env:SQLPSX 3 | 4 | heat dir "$($env:SQLPSX)\adoLib" -nologo -sfrag -suid -ag -srd -dir adoLib -out adoLib.wxs -cg adoLib -dr adoLib -var var.adoLib 5 | heat dir "$($env:SQLPSX)\Agent" -nologo -sfrag -suid -ag -srd -dir Agent -out Agent.wxs -cg Agent -dr Agent -var var.Agent 6 | heat dir "$($env:SQLPSX)\ISECreamBasic" -nologo -sfrag -suid -ag -srd -dir ISECreamBasic -out ISECreamBasic.wxs -cg ISECreamBasic -dr ISECreamBasic -var var.ISECreamBasic 7 | heat dir "$($env:SQLPSX)\mySQLLib" -nologo -sfrag -suid -ag -srd -dir mySQLLib -out mySQLLib.wxs -cg mySQLLib -dr mySQLLib -var var.mySQLLib 8 | heat dir "$($env:SQLPSX)\OracleClient" -nologo -sfrag -suid -ag -srd -dir OracleClient -out OracleClient.wxs -cg OracleClient -dr OracleClient -var var.OracleClient 9 | heat dir "$($env:SQLPSX)\OracleIse" -nologo -sfrag -suid -ag -srd -dir OracleIse -out OracleIse.wxs -cg OracleIse -dr OracleIse -var var.OracleIse 10 | heat dir "$($env:SQLPSX)\PBM" -nologo -sfrag -suid -ag -srd -dir PBM -out PBM.wxs -cg PBM -dr PBM -var var.PBM 11 | heat dir "$($env:SQLPSX)\PerfCounters" -nologo -sfrag -suid -ag -srd -dir PerfCounters -out PerfCounters.wxs -cg PerfCounters -dr PerfCounters -var var.PerfCounters 12 | heat dir "$($env:SQLPSX)\Repl" -nologo -sfrag -suid -ag -srd -dir Repl -out Repl.wxs -cg Repl -dr Repl -var var.Repl 13 | heat dir "$($env:SQLPSX)\ShowMbrs" -nologo -sfrag -suid -ag -srd -dir ShowMbrs -out ShowMbrs.wxs -cg ShowMbrs -dr ShowMbrs -var var.ShowMbrs 14 | heat dir "$($env:SQLPSX)\SQLIse" -nologo -sfrag -suid -ag -srd -dir SQLIse -out SQLIse.wxs -cg SQLIse -dr SQLIse -var var.SQLIse 15 | heat dir "$($env:SQLPSX)\SQLMaint" -nologo -sfrag -suid -ag -srd -dir SQLMaint -out SQLMaint.wxs -cg SQLMaint -dr SQLMaint -var var.SQLMaint 16 | heat dir "$($env:SQLPSX)\SQLParser" -nologo -sfrag -suid -ag -srd -dir SQLParser -out SQLParser.wxs -cg SQLParser -dr SQLParser -var var.SQLParser 17 | heat dir "$($env:SQLPSX)\SQLProfiler" -nologo -sfrag -suid -ag -srd -dir SQLProfiler -out SQLProfiler.wxs -cg SQLProfiler -dr SQLProfiler -var var.SQLProfiler 18 | heat dir "$($env:SQLPSX)\SQLPSX" -nologo -sfrag -suid -ag -srd -dir SQLPSX -out SQLPSX.wxs -cg SQLPSX -dr SQLPSX -var var.SQLPSX 19 | heat dir "$($env:SQLPSX)\SQLServer" -nologo -sfrag -suid -ag -srd -dir SQLServer -out SQLServer.wxs -cg SQLServer -dr SQLServer -var var.SQLServer 20 | heat dir "$($env:SQLPSX)\SSIS" -nologo -sfrag -suid -ag -srd -dir SSIS -out SSIS.wxs -cg SSIS -dr SSIS -var var.SSIS 21 | heat dir "$($env:SQLPSX)\WPK" -nologo -sfrag -suid -ag -srd -dir WPK -out WPK.wxs -cg WPK -dr WPK -var var.WPK 22 | 23 | #Download Install sed 24 | #http://gnuwin32.sourceforge.net/ 25 | set-alias -Name sed -Value "C:\Program Files (x86)\GnuWin32\bin\sed.exe" 26 | dir *.wxs -Exclude sqlpsxAll.wxs | foreach {sed -e "2i " -i $_.Name} 27 | remove-item sed* 28 | 29 | #Fix duplicate files in ISECreamBasic and OralceISE -- give unique prefix ICB and Ora 30 | #May need to generate new guid for Product Id 31 | ([System.Guid]::NewGuid().toString()).ToUpper() 32 | 33 | candle.exe sqlpsxAll.wxs adolib.wxs Agent.wxs mySQLLib.wxs ISECreamBasic.wxs OracleClient.wxs OracleIse.wxs PBM.wxs PerfCounters.wxs Repl.wxs ShowMbrs.wxs SQLIse.wxs SQLMaint.wxs SQLParser.wxs SQLProfiler.wxs SQLPSX.wxs SQLServer.wxs SSIS.wxs WPK.wxs 34 | 35 | light.exe -ext WixUIExtension -out SQLPSX.msi sqlpsxAll.wixobj adolib.wixobj Agent.wixobj mySQLLib.wixobj ISECreamBasic.wixobj OracleClient.wixobj OracleIse.wixobj PBM.wixobj PerfCounters.wixobj Repl.wixobj ShowMbrs.wixobj SQLIse.wixobj SQLMaint.wixobj SQLParser.wixobj SQLProfiler.wixobj SQLPSX.wixobj SQLServer.wixobj SSIS.wixobj WPK.wixobj -b "$($env:SQLPSX)" 36 | -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Write-SmoCsvToDb.ps1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 13 | # --------------------------------------------------------------------------- 14 | 15 | 16 | #$scriptRoot = Split-Path (Resolve-Path $myInvocation.MyCommand.Path) 17 | #. $scriptRoot\LibrarySmo.ps1 18 | $scriptRoot = "C:\SQLPSX" 19 | 20 | $CsvDir = "$scriptRoot\Data\" 21 | $arcDir = "$scriptRoot\Data\Archive\" 22 | $sqlserver = 'Z002\SQL2K8' 23 | $db = 'SQLPSX' 24 | 25 | ####################### 26 | function Invoke-Sqlcmd2 27 | { 28 | param( 29 | [string]$ServerInstance, 30 | [string]$Database, 31 | [string]$Query, 32 | [Int32]$QueryTimeout=30 33 | ) 34 | 35 | $conn=new-object System.Data.SqlClient.SQLConnection 36 | $conn.ConnectionString="Server={0};Database={1};Integrated Security=True" -f $ServerInstance,$Database 37 | $conn.Open() 38 | $cmd=new-object system.Data.SqlClient.SqlCommand($Query,$conn) 39 | $cmd.CommandTimeout=$QueryTimeout 40 | $ds=New-Object system.Data.DataSet 41 | $da=New-Object system.Data.SqlClient.SqlDataAdapter($cmd) 42 | [void]$da.fill($ds) 43 | $conn.Close() 44 | $ds.Tables[0] 45 | } #Invoke-Sqlcmd2 46 | 47 | ####################### 48 | function Write-ScriptLog 49 | { 50 | param($thread,$msg) 51 | $outfile = 'smocsvtodb.log' 52 | Add-Content -Path "$CsvDir$outfile" -Value "$((Get-Date).ToString(`"yyyy-MM-dd HH:mm`")) $thread $msg" 53 | 54 | }# Write-ScriptLog 55 | 56 | ####################### 57 | function ImportCsv 58 | { 59 | param($sqlserver, $db, $tblname, $csvfile) 60 | 61 | Invoke-Sqlcmd2 $sqlserver $db "BULK INSERT $db..$tblname FROM '$csvfile' WITH (FIELDTERMINATOR = ',', ROWTERMINATOR = '\n')" 62 | # Write-host "Set-SqlData $sqlserver $db `"BULK INSERT $db..$tblname FROM '$csvfile' WITH (FIELDTERMINATOR = ',', ROWTERMINATOR = '\n')`"" 63 | 64 | }# ImportCsv 65 | 66 | ####################### 67 | function processCsv 68 | { 69 | param($csvFile,$tblname) 70 | 71 | Get-ChildItem "$CsvDir*" -Include *."$csvFile".* | where {$_.Length -gt 0} | foreach {Write-ScriptLog "ImportCsv" "$_"; ImportCsv "$sqlserver" "$db" "$tblname" "$_"} 72 | 73 | }# processCsv 74 | 75 | ####################### 76 | Write-ScriptLog "processCsv" "Login" 77 | processCsv "SqlLogin" "Login" 78 | Write-ScriptLog "processCsv" "ServerPermission" 79 | processCsv "SqlServerPermission" "ServerPermission" 80 | Write-ScriptLog "processCsv" "ServerRole" 81 | processCsv "SqlServerRole" "ServerRole" 82 | Write-ScriptLog "processCsv" "SqlLinkedServerLogin" 83 | processCsv "SqlLinkedServerLogin" "SqlLinkedServerLogin" 84 | Write-ScriptLog "processCsv" "SqlUser" 85 | processCsv "SqlUser" "SqlUser" 86 | Write-ScriptLog "processCsv" "DatabasePermission" 87 | processCsv "SqlDatabasePermission" "DatabasePermission" 88 | Write-ScriptLog "processCsv" "ObjectPermssion" 89 | processCsv "SqlObjectPermission" "ObjectPermission" 90 | Write-ScriptLog "processCsv" "DatabaseRole" 91 | processCsv "SqlDatabaseRole" "DatabaseRole" 92 | 93 | Write-ScriptLog "archiveCsv" "$CsvDir$((Get-Date).ToString(`"yyyyMMdd`"))" 94 | if (!(Test-Path "$arcDir$((Get-Date).ToString(`"yyyyMMdd`"))")) 95 | { new-item -path $arcDir -name $((Get-Date).ToString("yyyyMMdd")) -itemType 'directory' } 96 | Move-Item "$CsvDir*.csv" "$arcDir$((Get-Date).ToString(`"yyyyMMdd`"))" 97 | Move-Item "$CsvDir*.err" "$arcDir$((Get-Date).ToString(`"yyyyMMdd`"))" 98 | Move-Item "$CsvDir*.log" "$arcDir$((Get-Date).ToString(`"yyyyMMdd`"))" 99 | $cmd = "compact.exe /C /S:$arcDir$((Get-Date).ToString(`"yyyyMMdd`"))" 100 | cmd /c $cmd 101 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/Show-DbObjectList.ps1: -------------------------------------------------------------------------------- 1 | function Show-DbObjectList($ds) 2 | { 3 | New-Window { 4 | @' 5 | 6 | 7 | 9 | 10 | 11 | 13 | 14 | 15 | 17 | 18 | 19 | 21 | 22 | 23 | 25 | 26 | 27 | 29 | 30 | 33 | 36 | 39 | 42 | 43 | 44 | 46 | 47 | 50 | 51 | 52 | 54 | 55 | 58 | 59 | 60 | 62 | 63 | 67 | 71 | 75 | 76 | 77 | 78 | 79 | 87 | 88 | 89 | 90 | '@ 91 | } -DataContext $ds -Height 600 -Width 300 -WindowStartupLocation CenterScreen -asjob 92 | } 93 | -------------------------------------------------------------------------------- /Deprecated/Test Scripts/testadolib.ps1: -------------------------------------------------------------------------------- 1 | ipmo adolib -Force 2 | 3 | function AssertEquals{ 4 | param($lhs,$rhs,$description) 5 | if ($lhs -eq $rhs){ 6 | Write-Host "$description PASSED" -BackgroundColor Green 7 | } else { 8 | Write-Host "$description FAILED" -BackgroundColor Red 9 | } 10 | } 11 | 12 | $server = '.\SQLEXPRESS' 13 | $db = 'TestAdoLib' 14 | $sql = "SELECT * from Application" 15 | 16 | #test simple query using ad hoc connection and NT authentication 17 | $rows=invoke-query -sql $sql -server $server -database $db 18 | AssertEquals $rows.Count 7 "ad hoc connection with NT auth" 19 | 20 | #test simple query using ad hoc connection and SQL login 21 | $rows=invoke-query -sql $sql -server $server -database $db -user test_login -password 12345 22 | AssertEquals $rows.Count 7 "ad hoc connection with SQL Login" 23 | 24 | #test parameterized query with ad hoc connection and sql login 25 | $rows=@(invoke-query -sql 'select * from Application where Application like @app' -server $server -database $db -user test_login -password 12345 -parameters @{app='CRM%'}) 26 | AssertEquals $rows.Count 1 "parameterized query with sql login" 27 | 28 | #test parameterized query with ad hoc connection and sql login 29 | $rows=@(invoke-query -sql 'select * from Application where Application like @app' -server $server -database $db -parameters @{app='CRM%'}) 30 | AssertEquals $rows.Count 1 "parameterized query with NT Auth" 31 | 32 | Remove-Variable conn 33 | $conn=new-connection -server $server -database $db 34 | 35 | #test simple query using shared connection and NT authentication 36 | $rows=invoke-query -sql $sql -conn $conn 37 | AssertEquals $rows.Count 7 "shared connection with NT auth" 38 | 39 | #test parameterized query with shared connection and NT Auth 40 | $rows=@(invoke-query -sql 'select * from Application where Application like @app' -conn $conn -parameters @{app='CRM%'}) 41 | AssertEquals $rows.Count 1 "parameterized query with shared connection and NT Auth" 42 | 43 | $conn.Close() 44 | 45 | $conn=new-connection -server $server -database $db -user test_login -password 12345 46 | 47 | 48 | #test simple query using shared connection and SQL login 49 | $rows=invoke-query -sql $sql -conn $conn 50 | AssertEquals $rows.Count 7 "shared connection and SQL login" 51 | 52 | #test parameterized query with shared connection and sql login 53 | $rows=@(invoke-query -sql 'select * from Application where Application like @app' -conn $conn -parameters @{app='CRM%'}) 54 | AssertEquals $rows.Count 1 "parameterized query with shared connection and sql login" 55 | 56 | #test stored procedure query with shared connection and sql login and IN parameters 57 | $rows=@(invoke-storedprocedure -storedProcName stp_TestInParam -conn $conn -parameters @{app='CRM%'}) 58 | AssertEquals $rows.Count 1 "parameterized query (in) with shared connection and sql login" 59 | 60 | #test stored procedure query with shared connection and sql login and out parameters 61 | $outRows=@(invoke-storedprocedure -storedProcName stp_TestOutParam -conn $conn -parameters @{app='CRM%'} -outparameters @{appID='uniqueidentifier'}) 62 | AssertEquals ($outRows[0].appID -is [Guid]) $true "parameterized query (out) with shared connection and sql login" 63 | 64 | #test NULL parameters 65 | $rows=invoke-query "select * from Application where @parm is NULL" -conn $conn -parameters @{parm=[System.DBNull]::Value} 66 | AssertEquals $rows.Count 7 "shared connection null parameters" 67 | 68 | #test simple query using ad hoc connection and SQL Login with "-AsResult DataTable" 69 | $rows=invoke-query -sql $sql -server $server -database $db -user test_login -password 12345 -AsResult DataTable 70 | AssertEquals ($rows -is [Data.DataTable]) $true "ad hoc connection with SQL Login as DataTable" 71 | 72 | #test simple query using ad hoc connection and SQL Login with "-AsResult DataSet" 73 | $rows=invoke-query -sql $sql -server $server -database $db -user test_login -password 12345 -AsResult DataSet 74 | AssertEquals ($rows -is [Data.DataSet]) $true "ad hoc connection with SQL Login as DataSet" 75 | 76 | 77 | #test simple query using ad hoc connection and SQL Login with "-AsResult DataRow" 78 | $rows=@(invoke-query -sql $sql -server $server -database $db -user test_login -password 12345 -AsResult DataRow) 79 | AssertEquals ($rows[0] -is [Data.DataRow]) $true "ad hoc connection with SQL Login as DataRow" 80 | 81 | 82 | -------------------------------------------------------------------------------- /Deprecated/SQLParser/SQLParser/SQLParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using Microsoft.Data.Schema.ScriptDom; 6 | using Microsoft.Data.Schema.ScriptDom.Sql; 7 | using System.IO; 8 | 9 | namespace SQLParser 10 | { 11 | class SQLParser 12 | { 13 | private IScriptFragment fragment; 14 | 15 | public SQLParser(SqlVersion sqlVersion, bool quotedIdentifier, string inputScript) 16 | { 17 | switch (sqlVersion) 18 | { 19 | case SqlVersion.Sql80: 20 | SQLParser80 (quotedIdentifier, inputScript); 21 | break; 22 | case SqlVersion.Sql90: 23 | SQLParser90 (quotedIdentifier, inputScript); 24 | break; 25 | case SqlVersion.Sql100: 26 | SQLParser100 (quotedIdentifier, inputScript); 27 | break; 28 | } 29 | } 30 | 31 | private void SQLParser100 (bool quotedIdentifier, string inputScript) 32 | { 33 | TSql100Parser parser = new TSql100Parser(quotedIdentifier); 34 | Parse(parser, inputScript); 35 | } 36 | 37 | private void SQLParser90 (bool quotedIdentifier, string inputScript) 38 | { 39 | TSql90Parser parser90 = new TSql90Parser(quotedIdentifier); 40 | Parse(parser90, inputScript); 41 | } 42 | 43 | private void SQLParser80 (bool quotedIdentifier, string inputScript) 44 | { 45 | TSql80Parser parser80 = new TSql80Parser(quotedIdentifier); 46 | Parse(parser80, inputScript); 47 | } 48 | 49 | private void Parse(TSql100Parser parser, string inputScript) 50 | { 51 | IList errors; 52 | 53 | using (StringReader sr = new StringReader(inputScript)) 54 | { 55 | fragment = parser.Parse(sr, out errors); 56 | } 57 | 58 | if (errors != null && errors.Count > 0) 59 | { 60 | StringBuilder sb = new StringBuilder(); 61 | foreach (var error in errors) 62 | { 63 | sb.AppendLine(error.Message); 64 | sb.AppendLine("offset " + error.Offset.ToString()); 65 | } 66 | throw new ArgumentException("InvalidSQLScript", sb.ToString()); 67 | } 68 | } 69 | 70 | private void Parse(TSql90Parser parser, string inputScript) 71 | { 72 | IList errors; 73 | 74 | using (StringReader sr = new StringReader(inputScript)) 75 | { 76 | fragment = parser.Parse(sr, out errors); 77 | } 78 | 79 | if (errors != null && errors.Count > 0) 80 | { 81 | StringBuilder sb = new StringBuilder(); 82 | foreach (var error in errors) 83 | { 84 | sb.AppendLine(error.Message); 85 | sb.AppendLine("offset " + error.Offset.ToString()); 86 | } 87 | throw new ArgumentException("InvalidSQLScript", sb.ToString()); 88 | } 89 | } 90 | 91 | private void Parse(TSql80Parser parser, string inputScript) 92 | { 93 | IList errors; 94 | 95 | using (StringReader sr = new StringReader(inputScript)) 96 | { 97 | fragment = parser.Parse(sr, out errors); 98 | } 99 | 100 | if (errors != null && errors.Count > 0) 101 | { 102 | StringBuilder sb = new StringBuilder(); 103 | foreach (var error in errors) 104 | { 105 | sb.AppendLine(error.Message); 106 | sb.AppendLine("offset " + error.Offset.ToString()); 107 | } 108 | throw new ArgumentException("InvalidSQLScript", sb.ToString()); 109 | } 110 | } 111 | 112 | public IScriptFragment Fragment 113 | { 114 | get { return fragment; } 115 | } 116 | 117 | 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /Deprecated/OracleIse/Library-UserStore.ps1: -------------------------------------------------------------------------------- 1 | ####################### 2 | function Test-UserStore 3 | { 4 | param([string]$fileName,[string]$dirName) 5 | 6 | $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 7 | 8 | if ($userStore.GetDirectoryNames($dirName)) 9 | { 10 | if ($userStore.GetFileNames("$dirName\$fileName")) 11 | { Write-Output $true } 12 | else 13 | { Write-Output $false } 14 | } 15 | else 16 | { Write-Output $false } 17 | 18 | } #Test-UserStore 19 | 20 | ####################### 21 | function Initialize-UserStore 22 | { 23 | param([string]$fileName,[string]$dirName,[string]$defaultFile) 24 | 25 | if (-not (Test-UserSTore $fileName $dirName)) 26 | { 27 | $defaults = &"$defaultFile" 28 | Write-UserStore $fileName $dirName $defaults 29 | } 30 | 31 | } #Initialize-UserStore 32 | 33 | ####################### 34 | function Write-UserStore 35 | { 36 | param([string]$fileName,[string]$dirName,$object) 37 | 38 | $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 39 | 40 | if (-not $userStore.GetDirectoryNames($dirName)) 41 | { $userStore.CreateDirectory($dirName) } 42 | 43 | try { 44 | #$file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::OpenOrCreate,$userStore) 45 | if (Test-UserSTore $fileName $dirName) 46 | { $file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::Truncate,$userStore) } 47 | else 48 | { $file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::OpenOrCreate,$userStore) } 49 | 50 | if ($object -is [Hashtable]) 51 | { 52 | $string = $object | ConvertTo-StringData 53 | $sw = New-Object System.IO.StreamWriter($file) 54 | $sw.Write($string) 55 | $sw.Close() 56 | } 57 | else 58 | { 59 | $xml = $object | ConvertTo-Xml -noTypeInformation 60 | $xml.Save($file) 61 | } 62 | } 63 | finally { 64 | $file.Close() 65 | $userStore.Close() 66 | } 67 | 68 | 69 | } #Write-UserStore 70 | 71 | ####################### 72 | function Read-UserStore 73 | { 74 | param([string]$fileName,[string]$dirName,[string]$typeName) 75 | 76 | $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 77 | 78 | try { 79 | $file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::Open,$userStore) 80 | } 81 | catch { 82 | Write-Error "Cannot open file $dirName\$fileName" 83 | break 84 | } 85 | 86 | try { 87 | 88 | if ($typeName -eq "Hashtable") 89 | { 90 | $sr = New-Object System.IO.StreamReader($file) 91 | $object = $sr.ReadToEnd() 92 | $sr.Close() 93 | Write-host $object 94 | invoke-expression "$object" 95 | } 96 | else 97 | { 98 | $xmlReader = New-Object System.Xml.XmlTextReader($file) 99 | $xml = New-Object System.Xml.XmlDocument 100 | $xml.Load($xmlReader) 101 | $object = ConvertFrom-Xml -xml $xml 102 | Write-Output $object 103 | } 104 | } 105 | finally { 106 | $file.Close() 107 | $userStore.Close() 108 | } 109 | 110 | } #Read-UserStore 111 | 112 | ####################### 113 | function Remove-UserStore 114 | { 115 | param([string]$fileName,[string]$dirName) 116 | 117 | $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 118 | $userStore.DeleteFile("$dirName\$fileName") 119 | $userStore.DeleteDirectory("$dirName") 120 | $userStore.Close() 121 | 122 | } #Remove-UserStore 123 | 124 | ####################### 125 | function New-UserStore 126 | { 127 | param([string]$dirName) 128 | 129 | $userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 130 | $userStore.CreateDirectory("$dirName") 131 | $userStore.Close() 132 | 133 | } #New-UserStore 134 | -------------------------------------------------------------------------------- /Deprecated/SQLParser/SQLParser/Microsoft.Data.Schema.ScriptDom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Microsoft.Data.Schema.ScriptDom 5 | 6 | 7 | 8 | 9 | 10 | Gets the number of characters in the fragment. 11 | 12 | 13 | 14 | 15 | Gets the offset of the fragment. 16 | 17 | 18 | 19 | 20 | This class reports on the error that occurred during parsing. 21 | 22 | 23 | 24 | 25 | 26 | 27 | Gets the identifier that uniquely represents the type of error. 28 | 29 | 30 | 31 | 32 | 33 | Gets the error description. 34 | 35 | 36 | 37 | 38 | Gets the starting offset of the error. 39 | 40 | 41 | 42 | 43 | Abstract base inherited by DSP-specific implementations for parsing language scripts. 44 | 45 | 46 | 47 | 48 | Initializes a new instance of the class. 49 | 50 | 51 | 52 | 53 | Parses the input text and returns a script fragment. 54 | 55 | 56 | 57 | 58 | 59 | The text to parse 60 | 61 | 62 | List of parsing errors 63 | 64 | 65 | 66 | 67 | This class is used to generate a script from a script fragment. 68 | 69 | 70 | 71 | 72 | Initializes a new instance of the class. 73 | 74 | 75 | 76 | 77 | Populates the writer with a script with the scriptFragment. 78 | 79 | 80 | The script fragment to generate script for. 81 | 82 | 83 | The writer that will be populated. 84 | 85 | 86 | 87 | 88 | Generates a script from a script fragment. 89 | 90 | 91 | The script fragment to generate script for. 92 | 93 | 94 | The generated script. 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /Deprecated/SQLIse/Library-UserStore.ps1: -------------------------------------------------------------------------------- 1 | Add-Type -Namespace SQLPS -Name IsolatedStorage -MemberDefinition @" 2 | public static System.IO.IsolatedStorage.IsolatedStorageFile GetUserStoreForAssembly() { 3 | return System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForAssembly(); 4 | } 5 | "@ 6 | $userStore = [SQLPS.IsolatedStorage]::GetUserStoreForAssembly() 7 | 8 | ####################### 9 | function Test-UserStore 10 | { 11 | param([string]$fileName,[string]$dirName) 12 | 13 | #$userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 14 | 15 | if ($userStore.GetDirectoryNames($dirName)) 16 | { 17 | if ($userStore.GetFileNames("$dirName\$fileName")) 18 | { Write-Output $true } 19 | else 20 | { Write-Output $false } 21 | } 22 | else 23 | { Write-Output $false } 24 | 25 | } #Test-UserStore 26 | 27 | ####################### 28 | function Initialize-UserStore 29 | { 30 | param([string]$fileName,[string]$dirName,[string]$defaultFile) 31 | 32 | if (-not (Test-UserSTore $fileName $dirName)) 33 | { 34 | $defaults = &"$defaultFile" 35 | Write-UserStore $fileName $dirName $defaults 36 | } 37 | 38 | } #Initialize-UserStore 39 | 40 | ####################### 41 | function Write-UserStore 42 | { 43 | param([string]$fileName,[string]$dirName,$object) 44 | 45 | #$userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 46 | 47 | if (-not $userStore.GetDirectoryNames($dirName)) 48 | { $userStore.CreateDirectory($dirName) } 49 | 50 | try { 51 | #$file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::OpenOrCreate,$userStore) 52 | if (Test-UserSTore $fileName $dirName) 53 | { $file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::Truncate,$userStore) } 54 | else 55 | { $file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::OpenOrCreate,$userStore) } 56 | 57 | if ($object -is [Hashtable]) 58 | { 59 | $string = $object | ConvertTo-StringData 60 | $sw = New-Object System.IO.StreamWriter($file) 61 | $sw.Write($string) 62 | $sw.Close() 63 | } 64 | else 65 | { 66 | $object | where {$_.Password} | foreach {$_.Password = Protect-String $_.Password} 67 | $xml = $object | ConvertTo-Xml -noTypeInformation 68 | $xml.Save($file) 69 | } 70 | } 71 | finally { 72 | $file.Close() 73 | #$userStore.Close() 74 | } 75 | 76 | 77 | } #Write-UserStore 78 | 79 | ####################### 80 | function Read-UserStore 81 | { 82 | param([string]$fileName,[string]$dirName,[string]$typeName) 83 | 84 | #$userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 85 | 86 | try { 87 | $file = New-Object System.IO.IsolatedStorage.IsolatedStorageFileStream("$dirName\$fileName",[System.IO.FileMode]::Open,$userStore) 88 | } 89 | catch { 90 | Write-Error "Cannot open file $dirName\$fileName" 91 | break 92 | } 93 | 94 | try { 95 | 96 | if ($typeName -eq "Hashtable") 97 | { 98 | $sr = New-Object System.IO.StreamReader($file) 99 | $object = $sr.ReadToEnd() 100 | $sr.Close() 101 | invoke-expression "$object" 102 | } 103 | else 104 | { 105 | $xmlReader = New-Object System.Xml.XmlTextReader($file) 106 | $xml = New-Object System.Xml.XmlDocument 107 | $xml.Load($xmlReader) 108 | $object = ConvertFrom-Xml -xml $xml 109 | $object | where {$_.Password} | foreach {$_.Password = UnProtect-String $_.Password} 110 | Write-Output $object 111 | } 112 | } 113 | finally { 114 | $file.Close() 115 | #$userStore.Close() 116 | } 117 | 118 | } #Read-UserStore 119 | 120 | ####################### 121 | function Remove-UserStore 122 | { 123 | param([string]$fileName,[string]$dirName) 124 | 125 | #$userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 126 | $userStore.DeleteFile("$dirName\$fileName") 127 | $userStore.DeleteDirectory("$dirName") 128 | #$userStore.Close() 129 | 130 | } #Remove-UserStore 131 | 132 | ####################### 133 | function New-UserStore 134 | { 135 | param([string]$dirName) 136 | 137 | #$userStore = [System.IO.IsolatedStorage.IsolatedStorageFile]::GetUserStoreForAssembly() 138 | $userStore.CreateDirectory("$dirName") 139 | #$userStore.Close() 140 | 141 | } #New-UserStore 142 | -------------------------------------------------------------------------------- /Deprecated/OracleClient/OracleBulkcopy.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Uses the .NET OracleBulkCopy class to quickly copy rows into a destination table. 4 | 5 | .DESCRIPTION 6 | 7 | Also, the Invoke-OracleBulkcopy function allows you to pass a command object instead of a set of records in order to "stream" the records 8 | into the destination in cases where there are a lot of records and you don't want to allocate memory to hold the entire result set. 9 | 10 | .PARAMETER records 11 | Either a datatable (like one returned from invoke-query or invoke-storedprocedure) or 12 | A sql command object (use new-sqlcommand) 13 | 14 | .PARAMETER TNS 15 | The destination server TNS to connect to. 16 | 17 | .PARAMETER User 18 | The sql user to use for the connection. If user is not passed, NT Authentication is used. 19 | 20 | .PARAMETER Password 21 | The password for the sql user named by the User parameter. 22 | 23 | .PARAMETER Table 24 | The destination table for the bulk copy operation. 25 | 26 | .PARAMETER dbaPrivilege 27 | "DBA Privilege" for the connection 28 | 29 | .PARAMETER Mapping 30 | A dictionary of column mappings of the form DestColumn=SourceColumn 31 | 32 | .PARAMETER BatchSize 33 | The batch size for the bulk copy operation. 34 | 35 | .PARAMETER NotifyAfter 36 | The number of rows to fire the notification event after transferring. 0 means don't notify. 37 | Ex: 1000 means to fire the notify event after each 1000 rows are transferred. 38 | 39 | .PARAMETER NotifyFunction 40 | A scriptblock to be executed after each $notifyAfter records has been copied. The second parameter ($param[1]) 41 | is a SqlRowsCopiedEventArgs object, which has a RowsCopied property. The default value for this parameter echoes the 42 | number of rows copied to the console 43 | 44 | .PARAMETER Options 45 | An object containing special options to modify the bulk copy operation. 46 | See http://download.oracle.com/docs/html/E10927_01/OracleBulkCopyOptionsEnumeration.htm#CHDEHFFF for values. 47 | 48 | 49 | .EXAMPLE 50 | PS C:\> $cmd=new-sqlcommand -server MyServer -sql "Select * from MyTable" 51 | PS C:\> invoke-Oraclebulkcopy -records $cmd -tns MyOtherServer -user myuser -password topsecret -table CopyOfMyTable 52 | 53 | .EXAMPLE 54 | PS C:\> $rows=invoke-query -server MyServer -sql "Select * from MyTable" 55 | PS C:\> invoke-Oraclebulkcopy -records $rows -tns MyOtherServer -password topsecret -table CopyOfMyTable 56 | 57 | .INPUTS 58 | None. 59 | You cannot pipe objects to Invoke-OracleBulkcopy 60 | 61 | .OUTPUTS 62 | None. 63 | 64 | #> 65 | function Invoke-OracleBulkcopy{ 66 | param([Parameter(Mandatory=$true)]$records, 67 | [Parameter(Mandatory=$true)]$tns, 68 | [string]$user, 69 | [string]$password, 70 | [Parameter(Mandatory=$true)][string]$table, 71 | [string]$dbaPrivilege, 72 | [hashtable]$mapping=@{}, 73 | [int]$batchsize=0, 74 | [int]$notifyAfter=0, 75 | [scriptblock]$notifyFunction={Write-Host "$($args[1].RowsCopied) rows copied."} 76 | #[Parameter(Position=10, Mandatory=$false)][Oracle.DataAccess.Client.OracleBulkCopyOptions ]$options=[Oracle.DataAccess.Client.OracleBulkCopyOptions ]::Default 77 | ) 78 | 79 | # I#m not using existing "New-Oracle_connection" function to create a connection string. 80 | # because I do not get back the password 81 | 82 | $ConnectionString = "Data Source=$tns;User ID=$user;Password=$password" 83 | Write-host $ConnectionString 84 | if ($dbaPrivilege) 85 | { 86 | $ConnectionString += ";DBA Privilege=$dbaPrivilege" 87 | } 88 | 89 | if ($options) 90 | { 91 | $bulkCopy = new-object "Oracle.DataAccess.Client.OracleBulkCopy" $connectionString $options 92 | } 93 | else 94 | { 95 | $bulkCopy = new-object "Oracle.DataAccess.Client.OracleBulkCopy" $connectionString 96 | } 97 | 98 | $bulkCopy.BatchSize = $batchSize 99 | $bulkCopy.DestinationTableName = $table 100 | $bulkCopy.BulkCopyTimeout = 10000000 101 | if ($notifyAfter -gt 0){ 102 | $bulkCopy.NotifyAfter = $notifyafter 103 | $bulkCopy.Add_OracleRowscopied($notifyFunction) 104 | } 105 | 106 | #Add column mappings if they were supplied 107 | foreach ($key in $mapping.Keys){ 108 | $bulkCopy.ColumnMappings.Add($mapping[$key],$key) | out-null 109 | } 110 | 111 | write-debug "Bulk copy starting at $(get-date)" 112 | if ($records -is [System.Data.Common.DBCommand]){ 113 | #if passed a command object (rather than a datatable), ask it for a datareader to stream the records 114 | $bulkCopy.WriteToServer($records.ExecuteReader()) 115 | } elsif ($records -is [System.Data.Common.DbDataReader]){ 116 | #if passed a Datareader object use it to stream the records 117 | $bulkCopy.WriteToServer($records) 118 | } else { 119 | $bulkCopy.WriteToServer($records) 120 | } 121 | write-debug "Bulk copy finished at $(get-date)" 122 | } 123 | -------------------------------------------------------------------------------- /Modules/ShowMbrs/ShowMbrs.psm1: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | ### 14 | # --------------------------------------------------------------------------- 15 | 16 | add-type -AssemblyName System.DirectoryServices.AccountManagement 17 | 18 | ####################### 19 | function New-ShowMbrs 20 | { 21 | Write-Verbose "New-ShowMbrs" 22 | 23 | #__SQLPSXGroupUser is a session variable, so only create if it doesn't exist 24 | if (!(Test-Path Variable:__SQLPSXGroupUser)) 25 | { Set-Variable __SQLPSXGroupUser @{} -Scope Global -Option AllScope -Description "SQLPSX variable" } 26 | 27 | } #New-ShowMbrs 28 | 29 | ####################### 30 | function Set-ShowMbrs 31 | { 32 | param($account,$groupkey) 33 | 34 | Write-Verbose "Set-ShowMbrs $account $groupkey" 35 | 36 | if (!($__SQLPSXGroupUser.Contains($groupkey))) 37 | { $__SQLPSXGroupUser[$groupkey] = @($account) } 38 | elseif (!($__SQLPSXGroupUser[$groupkey] -contains $account)) 39 | { $__SQLPSXGroupUser[$groupkey] += @($account) } 40 | 41 | } # Set-ShowMbrs 42 | 43 | ####################### 44 | function Get-GroupUser 45 | { 46 | 47 | param($group,$groupkey = $group) 48 | 49 | Write-Verbose "Get-GroupUser $group $groupkey" 50 | 51 | #If we haven't already enumerated the group this Powershell session 52 | if (!($__SQLPSXGroupUser[$groupkey] -contains $group)) 53 | { 54 | Set-ShowMbrs $group $groupkey 55 | 56 | $domain = $($group.ToString()).split("\")[0] 57 | $groupname = $($group.ToString()).split("\")[1] 58 | 59 | #Regex to extract Domain from DistinguishedName 60 | $regex = '^[A-Z0-9+_.-]+@([A-Z0-9.-]+)\.(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)$' 61 | 62 | if ( @('NT AUTHORITY','BUILTIN','NT SERVICE') -notcontains $domain ) 63 | { 64 | try { 65 | $domainName = [System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain() | select -ExpandProperty Name 66 | $isDomain = $domainName -match "$domain\." 67 | } 68 | catch { 69 | $isDomain = $false 70 | } 71 | 72 | if ($isDomain) 73 | { $ctype = [System.DirectoryServices.AccountManagement.ContextType]::Domain } 74 | else 75 | { $ctype = [System.DirectoryServices.AccountManagement.ContextType]::Machine } 76 | 77 | $principal = new-object System.DirectoryServices.AccountManagement.PrincipalContext $ctype,$domain 78 | $groupPrincipal = new-object System.DirectoryServices.AccountManagement.GroupPrincipal $principal,$groupname 79 | $searcher = new-object System.DirectoryServices.AccountManagement.PrincipalSearcher 80 | $searcher.QueryFilter = $groupPrincipal 81 | #Note GetMembers(true) recursively enumerates groups while GetMembers() does not 82 | $searcher.FindAll() | foreach {$_.GetMembers($true)} | foreach { if ($_.UserPrincipalName) {$null = $_.UserPrincipalName -match $regex; $domain = $matches[1]}; 83 | Set-ShowMbrs "$domain\$($_.SamAccountName)" $groupkey } 84 | 85 | } 86 | } 87 | 88 | } #Get-GroupUser 89 | 90 | ####################### 91 | <# 92 | .SYNOPSIS 93 | Recursivley enumerates local Windows and AD groups. 94 | .DESCRIPTION 95 | The Get-ShowMbrs function recursivley enumerates local Windows and AD groups. Similar to the NT Resource utility showmbrs.exe, except that Get-ShowMbrs provides fully recursive group enumeration. 96 | .INPUTS 97 | None 98 | You cannot pipe objects to Get-ShowMbrs. 99 | .OUTPUTS 100 | String 101 | Get-ShowMbrs returns a string object. 102 | .EXAMPLE 103 | Get-ShowMbrs "$env:computername\Administrators" 104 | This command outputs a list of all members of the local Administrators group. If the group contains AD members, these groups are also enumerated. 105 | .EXAMPLE 106 | Get-ShowMbrs "Consco\PayrollUsers" 107 | This command outputs a list of all members of the AD group. If the group contains nested groups, these groups are also enumerated. 108 | .LINK 109 | Get-ShowMbrs 110 | #> 111 | function Get-ShowMbrs 112 | { 113 | param( 114 | [Parameter(Mandatory=$true)] [string]$group 115 | ) 116 | 117 | Write-Verbose "Get-ShowMbrs $group" 118 | 119 | New-ShowMbrs 120 | 121 | Get-GroupUser $group 122 | 123 | return $__SQLPSXGroupUser[$group] 124 | 125 | } #Get-ShowMbrs 126 | -------------------------------------------------------------------------------- /Deprecated/Reports/SQLPSX/SQLPSX/SQLPSX.rptproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | $base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yLzIiIHhtbG5zOmRkbDEwMF8xMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDA4L2VuZ2luZS8xMDAvMTAwIiB4bWxuczpkd2Q9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vRGF0YVdhcmVob3VzZS9EZXNpZ25lci8xLjAiPg0KICA8RW5hYmxlZD5mYWxzZTwvRW5hYmxlZD4NCiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg== 4 | 5 | 6 | SQLPSX.rds 7 | SQLPSX.rds 8 | 9 | 10 | 11 | 12 | SQLPSXChangedDatabasePermission.rdl 13 | SQLPSXChangedDatabasePermission.rdl 14 | 15 | 16 | SQLPSXChangedDatabaseRole.rdl 17 | SQLPSXChangedDatabaseRole.rdl 18 | 19 | 20 | SQLPSXChangedLogin.rdl 21 | SQLPSXChangedLogin.rdl 22 | 23 | 24 | SQLPSXChangedObjectPermission.rdl 25 | SQLPSXChangedObjectPermission.rdl 26 | 27 | 28 | SQLPSXChangedServerPermission.rdl 29 | SQLPSXChangedServerPermission.rdl 30 | 31 | 32 | SQLPSXChangedServerRole.rdl 33 | SQLPSXChangedServerRole.rdl 34 | 35 | 36 | SQLPSXChangedSqlUser.rdl 37 | SQLPSXChangedSqlUser.rdl 38 | 39 | 40 | SQLPSXChangedSqlUserOwnedObject.rdl 41 | SQLPSXChangedSqlUserOwnedObject.rdl 42 | 43 | 44 | SQLPSXDatabasePermission.rdl 45 | SQLPSXDatabasePermission.rdl 46 | 47 | 48 | SQLPSXDatabaseRole.rdl 49 | SQLPSXDatabaseRole.rdl 50 | 51 | 52 | SQLPSXLinkedServerLogin.rdl 53 | SQLPSXLinkedServerLogin.rdl 54 | 55 | 56 | SQLPSXLogin.rdl 57 | SQLPSXLogin.rdl 58 | 59 | 60 | SQLPSXLoginGrouped.rdl 61 | SQLPSXLoginGrouped.rdl 62 | 63 | 64 | SQLPSXObjectPermission.rdl 65 | SQLPSXObjectPermission.rdl 66 | 67 | 68 | SQLPSXServerPermission.rdl 69 | SQLPSXServerPermission.rdl 70 | 71 | 72 | SQLPSXServerRole.rdl 73 | SQLPSXServerRole.rdl 74 | 75 | 76 | SQLPSXSqlUser.rdl 77 | SQLPSXSqlUser.rdl 78 | 79 | 80 | SQLPSXSqlUserGrouped.rdl 81 | SQLPSXSqlUserGrouped.rdl 82 | 83 | 84 | SQLPSXSqlUserOwnedObject.rdl 85 | SQLPSXSqlUserOwnedObject.rdl 86 | 87 | 88 | 89 | 90 | Debug 91 | Win32 92 | 93 | http://z002/ReportServer_SQL2K8 94 | SQLPSX 95 | Data Sources 96 | 97 | 98 | 99 | DebugLocal 100 | Win32 101 | 102 | SQLPSX 103 | Data Sources 104 | 105 | 106 | 107 | Production 108 | Win32 109 | 110 | SQLPSX 111 | Data Sources 112 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /Modules/SQLPSXServer/Database/SQLPSX.Job.sql: -------------------------------------------------------------------------------- 1 | USE [msdb] 2 | GO 3 | 4 | /****** Object: Job [SQLPSX] Script Date: 07/10/2010 17:18:28 ******/ 5 | IF EXISTS (SELECT job_id FROM msdb.dbo.sysjobs_view WHERE name = N'SQLPSX') 6 | EXEC msdb.dbo.sp_delete_job @job_id=N'3f2c4f7d-20a2-4e63-a6cb-206d4b019abc', @delete_unused_schedule=1 7 | GO 8 | 9 | USE [msdb] 10 | GO 11 | 12 | /****** Object: Job [SQLPSX] Script Date: 07/10/2010 17:18:28 ******/ 13 | BEGIN TRANSACTION 14 | DECLARE @ReturnCode INT 15 | SELECT @ReturnCode = 0 16 | /****** Object: JobCategory [dbaudit] Script Date: 07/10/2010 17:18:28 ******/ 17 | IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'dbaudit' AND category_class=1) 18 | BEGIN 19 | EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N'JOB', @type=N'LOCAL', @name=N'dbaudit' 20 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 21 | 22 | END 23 | 24 | DECLARE @jobId BINARY(16) 25 | EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'SQLPSX', 26 | @enabled=1, 27 | @notify_level_eventlog=0, 28 | @notify_level_email=0, 29 | @notify_level_netsend=0, 30 | @notify_level_page=0, 31 | @delete_level=0, 32 | @description=N'Runs Powershell scripts to create security settings csv files and load them into a database for reporting', 33 | @category_name=N'dbaudit', 34 | @owner_login_name=N'sa', @job_id = @jobId OUTPUT 35 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 36 | /****** Object: Step [PurgeHistory] Script Date: 07/10/2010 17:18:28 ******/ 37 | EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'PurgeHistory', 38 | @step_id=1, 39 | @cmdexec_success_code=0, 40 | @on_success_action=3, 41 | @on_success_step_id=0, 42 | @on_fail_action=2, 43 | @on_fail_step_id=0, 44 | @retry_attempts=0, 45 | @retry_interval=0, 46 | @os_run_priority=0, @subsystem=N'TSQL', 47 | @command=N'EXECUTE dbo.usp_del_DatabasePermission 48 | EXECUTE dbo.usp_del_DatabaseRole 49 | EXECUTE dbo.usp_del_LinkedServerLogin 50 | EXECUTE dbo.usp_del_Login 51 | EXECUTE dbo.usp_del_ObjectPermission 52 | EXECUTE dbo.usp_del_ServerPermission 53 | EXECUTE dbo.usp_del_ServerRole 54 | EXECUTE dbo.usp_del_SqlUser', 55 | @database_name=N'SQLPSX', 56 | @flags=0 57 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 58 | /****** Object: Step [Run-SmoToCsvFile] Script Date: 07/10/2010 17:18:28 ******/ 59 | EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'Run-SmoToCsvFile', 60 | @step_id=2, 61 | @cmdexec_success_code=0, 62 | @on_success_action=3, 63 | @on_success_step_id=0, 64 | @on_fail_action=2, 65 | @on_fail_step_id=0, 66 | @retry_attempts=0, 67 | @retry_interval=0, 68 | @os_run_priority=0, @subsystem=N'CmdExec', 69 | @command=N'C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.EXE -command "C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\SQLServer\run-SmoToCsvFile.ps1 2>&1"', 70 | @output_file_name=N'C:\SQLPSX\Data\SQLPSX.err', 71 | @flags=0 72 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 73 | /****** Object: Step [WAIT] Script Date: 07/10/2010 17:18:28 ******/ 74 | EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'WAIT', 75 | @step_id=3, 76 | @cmdexec_success_code=0, 77 | @on_success_action=3, 78 | @on_success_step_id=0, 79 | @on_fail_action=2, 80 | @on_fail_step_id=0, 81 | @retry_attempts=0, 82 | @retry_interval=0, 83 | @os_run_priority=0, @subsystem=N'TSQL', 84 | @command=N'WAITFOR DELAY ''00:05''', 85 | @database_name=N'master', 86 | @flags=0 87 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 88 | /****** Object: Step [Write-SmoCsvToDb] Script Date: 07/10/2010 17:18:28 ******/ 89 | EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'Write-SmoCsvToDb', 90 | @step_id=4, 91 | @cmdexec_success_code=0, 92 | @on_success_action=1, 93 | @on_success_step_id=0, 94 | @on_fail_action=2, 95 | @on_fail_step_id=0, 96 | @retry_attempts=0, 97 | @retry_interval=0, 98 | @os_run_priority=0, @subsystem=N'CmdExec', 99 | @command=N'C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.EXE -command "C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\SQLServer\Write-SmoCsvToDb.ps1 2>&1"', 100 | @output_file_name=N'C:\SQLPSX\Data\SQLPSX.err', 101 | @flags=2 102 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 103 | EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1 104 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 105 | EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N'Weekly', 106 | @enabled=0, 107 | @freq_type=8, 108 | @freq_interval=1, 109 | @freq_subday_type=1, 110 | @freq_subday_interval=0, 111 | @freq_relative_interval=0, 112 | @freq_recurrence_factor=1, 113 | @active_start_date=20080710, 114 | @active_end_date=99991231, 115 | @active_start_time=150000, 116 | @active_end_time=235959, 117 | @schedule_uid=N'8ec1b0f5-c6b1-44c1-8308-c01f7bed505b' 118 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 119 | EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = N'(local)' 120 | IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback 121 | COMMIT TRANSACTION 122 | GOTO EndSave 123 | QuitWithRollback: 124 | IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION 125 | EndSave: 126 | 127 | GO 128 | 129 | --------------------------------------------------------------------------------