rrg92 / custommssql Goto Github PK
View Code? Open in Web Editor NEWMódulo para powershell contendo diversos cmdlets que auxiliam na Administração e desenvolvimento de soluções SQL Server
License: MIT License
Módulo para powershell contendo diversos cmdlets que auxiliam na Administração e desenvolvimento de soluções SQL Server
License: MIT License
Allows users pass sp_whoisactive parameters directly on the cmdlets parameters.
For example, user activates sp_WhoIsActive mode using a parameter -WhoIsActive. Then cmdlets accepts all parameters and passes it to sp_WhoIsActive execution, except special parameters, like "ServerInstance".
If sp_WhoIsActive dont exists, a parameter can define if cmdlet will try create it.
In this way, the cmdlet can easily allows user generate sp_WhoIsActive results and export for excel, for example.
Identation of log messages is possible manually, where user of Log object must add the tab character when calling log method.
The purpose of this enhancement is provided a way to user, via parameters, drive the log engine when tabs must be added or not to message, in order to ident related log messages and creates parent-child relations easily in same way the code stays clean!
For example:
Log "Main message" -RaiseNext
Log "Main Message child 1"
Log "Main Message child 2" -RaiseNext
Log "Main message child 2 child 1"
Log "Main Messae child 3" -Drop
Log "Main Message 2" -Drop -RaiseNext
Log "Main Message 2 child 1"
Log "Main Message 2 child 1 child 1" -Raise
Log "Main Message 3" -Drop 0
Log "Main Message 4"
Must produce this output (each "-" represents a "tab")
Main message
-Main Message child 1
-Main Message child 2
--Main message child 2 child 1
-Main Message child 3
Main Message 2
-Main Message 2 child 1
--Main Message 2 child 1 child 1
Main Message 3
Main Message 4
In the log generated by this cmdlet. at the line bellow the message 'Caching Enabled', when showing the 'Current Host Folder', the value show is only the base dir. The hostname part if not showed.
This erros is generated when creating a principal which type is SQL_USER. Seems that this happens because backed up user has not a valid login mapped...
MSSQL_ERROR: An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alias to a valid name.
Allows users specify a separate location for post scripts execution results.
This allows a DBA schedule Copy-SQLDatabase in order to attend a specific user request (production to development, for example) and allows that user provider your custom scripts to be applied after database is restored. The results of post scripts will be outputed to this location, instead of just log file, how is in current version.
Allow specify a scriptblock in key definitioons, where user will take control over generated output to be piped into zabbix_sender.exe
This will increase perfomance;
Cache manager can bug if multiple instances of same host if executed (e.g: different keygroup).
Must there are a way to script create a unique instance or merge databases between all instances.
A non critical bug: The name used for build cache folder full path is got from $HostName paramter and not $VALUES.HOSTNAME variable. This can generate some incorrect paths!
When two instance of Copy-SQLDatabase cmdlet runs in parallel, in some cases, the portion that writes to backup file and read from backup file can be excuted at same time, causing error in some of them.
The proposal is allows the cmdlet detects and coordenates this cenarios, blocking cmdlet invokes BACKUP COMMAND when another instance running "RESTORE COMMAND". Paralell RESTORE commands is acceptable.
Must exists a mechanism that synchronizes different instances when it about to ask a instance write to a file.
Here a example of a flow:
When hostname have spaces, the script dont behaviors normal...
This module documentation need a revision in grammar. There are many typos.
Also, some importants topics about the module is incorrect!
The Copy-SQLDatabase cmdlet don't have a SQL Authentication parameter.
Implement a option to export permissions backed up to be restored after database is restored (KeepPermissions).
By default, the cmdlet extracts permissions and store in memory only. With this enhancement, a new parameter will provider a user a chance to export generated DCL for keep permissions. It is like a backup of existent permissions, before overwrite destination database.
Needs a way to add a versioning to each cmdlet in order to allow users check version of cmdlet.
This system, needs allows a standarlized way to check version for each cmdlet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.