Blog Archives
Retornando e Exportando Logins no SQL Server
Olá pessoal, tudo bom com vocês?
Nos artigos anteriores demos inicio a nossa sequencia de vídeos sobre o dbatools, onde realizamos a instalação do Visual Studio Code e consequentemente instalamos o módulo do dbatools.
Nesse vídeo é onde de fato vamos abortar os primeiros comandos que compoem esse maravilhoso módulo que são: Get-DbaLogin e Export-DbaLogin. Vocês verão que através de scripts simples podem automatizar algumas rotinas que farão a vida de um administrador de banco de dados mais simples.
Nada do que vou mostrar no vídeo é complexo de ser feito, você precisa apenas pensar no problema a ser resolvido, e é isso mesmo a minha abordagem.
Espero que vocês gostem do conteúdo que estão prestes a assistir.
Como sempre enfatizo, fico aguardando os comentários de vocês, sejam com sugestões de vídeos ou até mesmo críticas.
Abraços e até o próximo vídeo.
Marcos Freccia
Data Platform MVP
Instalação do dbatools
Olá pessoal, tudo com vocês?
Sejam bem vindos a mais um post nesse blog que dá início a minha serie de vídeos sobre os mais variados temas. Por enquanto estou abordando o dbatools, mas a ideia é que no futuro eu também aborde aqui outros assuntos como por exemplo Python, desenvolvimento web com Django e por ai vai.
Antes mesmo de começarmos a falar sobre o dbatools, temos que instalar o módulo seja em nossa estação de trabalho, ou no servidor onde os scripts serão executados.
Então o vídeo de hoje aborda esse tema, onde primeiramente eu mostro a navegação no site, como encontrar mais informações sobre o módulo. Feito isso, partimos então para a tela do Visual Studio Code, onde demonstro como realizar a instalação do módulo.
Por fim, validamos se a instalação foi feita com sucesso quando executamos alguns comandos no Visual Studio Code.
Espero que vocês gostem do conteúdo que estou preparando e fico ansiosamente aguardando por sugestões, críticas ou elogios de vocês!
Ah, se inscrevam também no meu canal no Youtube, assim quando qualquer novo vídeo sair, vocês irão receber uma notificação.
Abraços e até o próximo vídeo!
Marcos Freccia
Data Platform MVP
Instalando o Visual Studio Code
Olá pessoal, tudo bom com vocês?
Como vocês podem ver, estou ha um longo tempo sem postar nada aqui em meu blog, principalmente na língua portuguesa. Com a minha mudança para a Alemanha no início de 2017, e por focar mais aqui no mercado da Europa, acabei por focar um pouco mais na língua inglesa para postagens.
Aproveitando o gancho da postagem. Vocês tem curiosidade em saber mais como foi o meu processo de mudança aqui para a Alemanha (mais especificamente Berlim)?
Caso vocês queiram saber mais, posso também fazer um vídeo explicando todo o processo para vocês. Deixa um comentário aqui nesse post caso vocês queiram.
Mas porque estou voltando com posts em Português?
A resposta para essa pergunta é bastante simples. Um dos conteúdos que gosto muito de falar é sobre PowerShell e nesse ultimo ano tenho especialmente trabalhado com dbatools. Não sei o porquê, mas enquanto trabalhava no Brasil, não via muitas pessoas utilizando esse módulo e notei que existem poucos materiais sobre o mesmo em minha língua materna. Esse é o motivo que vou voltar a escrever um pouco mais.
Todas as segundas-feiras, vou lançar um vídeo novo em meu canal do Youtube sobre alguma função do dbatools que utilizo no meu dia-a-dia como administrador de banco de dados. Afinal, esse é um excelente módulo que merece ser amplamente dessiminado em nossa língua.
Para esse primeiro vídeo, decidi começar do mais simples possível! Como instalar o Visual Studio Code e instalar a extensão do PowerShell para a mesma.
Espero que vocês gostem do conteúdo que estou preparando e fico ansiosamente aguardando por sugestões, críticas ou elogios de vocês!
Ah, se inscrevam também no meu canal no Youtube, assim quando qualquer novo vídeo sair, vocês irão receber uma notificação.
Abraços e até o próximo vídeo!
Marcos Freccia
Data Platform MVP
Customizing Remove-DbaBackup from dbatools
Howdy!
As a matter fact, it is not new that dbatools is a great PowerShell module for the SQL Server DBA, and from time to time they come up with new functions that for me I just think: Why I never thought about it before?
Today I want to talk about the function Remove-DbaBackup and more specifically my customized version of it. No, I didn’t rewrite Remove-DbaBackup but rather improved to my environment. The function by itself is just great and it addresses the goal of removing the backups nicely, but at the end, the function was not doing something that I wanted. Read the rest of this entry
Ich werde sprechen an SQL Saturday Munich 2018
Guten Morgen zusammen!
Die zeit zur minem nächsten session ist gekommen!
It is a mixed feeling of excitement and being nervous at the same time!
This weekend I will be, along with my friend and also Data Platform MVP Fabiano Amorin, delivering a session at SQL Saturday 772 in Munich/Germany.
Together with him, we will deliver the following session: Stop Everything! T-SQL tips to make a developer life easier!
We promise it will one hour of really cool demos and also some surprises for you! I guess you will like what you are going to see.
Off course I want you guys in our session, but as Fabiano is coming from Brazil for the event, he is also going to deliver a second session called: 13 reasons why my query is slow, which I will be certainly checking it out, and you should do the same.
Other than that, you have at least other 25 sessions that you can choose to watch, there is something to please everyone. Ah! I should say that you have to register yourself ASAP, as open seats are running out very fast.
I will be the whole day in the konferenz, and I’d love to talk with you! Make sure to stop by.
Bis später!
Marcos Freccia
Data Platform MVP
Linking Data Sources to SSRS Reports with PowerShell
Imagine the following scenario: You just migrated a bunch of SSRS Reports to a new Reporting Services instance, which has a different folder structure. In this perspective, one of the things that get lost along the way is the linking between Data Sources and Reports.
If you are in the PowerShell world like me you know very well this repository in the Microsoft organization on Github: ReportingServicesTools.
Reporting Services Tools is a module that interacts with Microsoft SQL Server Reporting Services, making it easier several tasks like importing and exporting reports, creating folders, subscriptions, data sources and so on. The module is maintained by Microsoft along with some know PowerShell folks from the community like my friend Claudio Silva(@claudioessilva) from the dbatools team. Read the rest of this entry
Automate your SQL Server Restore Tests with PowerShell, dbatools and PowerBI
Hello everyone,
At work, I got to do some really interesting stuff. What I like is they really give me the freedom to try things out. Ah, and if you wanna join us, we have a position to work with me, posted here: https://grnh.se/4899e2091.
There is a saying, which I don’t exactly remember, is that a backup is only a backup if you test the restore of the same. So, I was working on creating an automated way of restoring the backups of my production databases and give me some sort of reporting around it.
So, I did that work and it is running really fine with the structure that I have. Then, I had the idea to share what I did with the community, mainly because I rely on almost all of my work to dbatools, and without them I would have more trouble/work do, to get the same results.
I shared a screenshot on twitter as you can see below.
link: https://twitter.com/marcosfreccia/status/1037031233262374914
I got a few replies from people saying that they would like to see how it is done. So, in this blog post, I’ll explain you all the steps that I had to do, to obtain this result.
I’m speaking at SQL Saturday Lviv 2018
Hello Everyone!
In the end of this month, I will be in Lviv, Ukraine for the SQL Saturday 753 or SQL Saturday Lviv!
There will be 18 sessions with a variety of topics for you to choose 🙂 If you live in Lviv or nearby you should definetely check it out.
Honestly, I am really excited to be in Lviv, I never expected that one day I would be in Ukraine and also going there for speaking, it is a double excitement!
I will be speaking about some 10 alerts that you shoul have it running in your SQL Server. It is a very interesting topic in those days where everything is “automated”, right? If you are attending the event, make sure to join me at 12:50PM for the session: 10 alerts that you should have it running in your SQL Server.
If you follow me here or in my twitter @marcosfreccia and you are going to attend the event, make sure to stop by and say hello!!
See you!
Marcos Freccia
Data Platform MVP
Free Microsoft Flow + Twitter + SQL Server
Those days I was playing around with Microsoft Flow and have created some automation for a few things.
While playing with it the thing that I liked was the possibility to host workflows in a free account. So, if you have a live account you can pretty much use a ton of connectors and create your own workflows. You should check it out the plan offers in this link below and understand how you can use it.
https://emea.flow.microsoft.com/en-us/pricing/ Read the rest of this entry
My Lightining Talk at SQL Saturday Vienna 2018
Hello everyone!
I just wanted to share that I will be presenting a Lightining Talk at SQL Saturday 679 in Vienna, Austria. I will have 10 minutes to present the following session.
Title: My 5 favorite Powershell Commands!
So, if you are planning to be in Vienna for the SQL Saturday, make sure to register yourself, as there are only a few spots available. Also, if you are a DBA, I would say that you really should be attending my Lightining Talk, because the commands that I am gonna show you will save your life.. or at least make it easier.
Also, look at the Event Agenda, as there will be many other sessions in all areas of the Data Platform world.
http://www.sqlsaturday.com/679/EventHome.aspx
See you in Vienna!