Category Archives: Administração
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.
The most read posts of June – 2017
Hi guys,
I have decided that I will continue to do this kind of blog post. So you don’t need any other introduction about the subject. So, let me list the top 5 posts of June.
1) Transaction log cheio? E agora? – 327 views – Posted on 13.06.2011
2) Como visualizar o conteudo de procedures criptografadas – 182 views – Posted on 11.03.2015
3) Configurando Linked Server de SQL Server para Oracle – 175 views – Posted on 15.06.2012
4) SQL Server no Linux – os primeiros passos – 115 views – Posted on 02.01.2017
2) Adding SSISDB to AG for SQL Server 2016 – 97 views – Posted on 28.04.2017
You see it, that’s not a looot of reads, but I’ll try to improve my writing skills and share more with you, because I have been doing some pretty cool stuff at work!
I hope you like this type of post!
Olá pessoal,
Decidi que vou continuar com esse tipo de postagem. Bom, acredito que não preciso fazer mais nenhuma introdução sobre esse assunto, então segue os 5 posts mais acessados do meu blog.
1) Transaction log cheio? E agora? – 327 views – Posted on 13.06.2011
2) Como visualizar o conteudo de procedures criptografadas – 182 views – Posted on 11.03.2015
3) Configurando Linked Server de SQL Server para Oracle – 175 views – Posted on 15.06.2012
4) SQL Server no Linux – os primeiros passos – 115 views – Posted on 02.01.2017
2) Adding SSISDB to AG for SQL Server 2016 – 97 views – Posted on 28.04.2017
Para falar bem a verdade, o numero de visualizações é bem baixo até, acho que preciso fazer mais propaganda . Está acontecendo bastante coisa legal no trabalho e vou tentar escrever mais conteúdos para todos.
Se vocês gostaram desse tipo de post, deixa um comentário, já é um bom incentivo.
Regards,
Marcos Freccia
Data Platform MVP
How much transaction log, transactions generate?
Hi Everyone,
I wanted to share something that I am doing this week at work. One of the applications that I support is generating a lot of transaction log in the database. Just to have an idea, we run Transaction Log backups every 30 minutes and I have backups over 100GB and sometimes 200GB. The difficult part of investigating what is generating that amount of log is because the databases involved are used by at least 3 different applications and streams. So, I remember that in the past I created a simple script that looks at this information in the database and then I may have more inputs of what is really generating that amount of log. Read the rest of this entry
Changing the Dump Directory Location may SQL Agent to not start
Hey Guys,
I was those days changing a few settings in the environment, where I had this small problem and I would like to share what did I do to fix it. The task in question was actually easy: To change the default directory of the LOG folder, that usually is where the SQL Server Agent logs, ERRORLOG and some other things are stored. Read the rest of this entry
MVP Virtual Conference–Material de apresentação
Olá pessoal,
No inicio do mês de maio de 2015 entre os dias 13 e 14 tivemos o MVP Virtual Conference onde tive a oportunidade de palestrar apresentando sobre o Resource Governor no SQL Server 2014. Antes de mais nada peço desculpas pela demora em disponibilizar o conteúdo para vocês, mas ultimamente tenho estado bastante ocupado.
Bom, como ja ia falando logo abaixo segue os materiais que utilizei para realizar a apresentação, tanto o PPT como também os scripts para caso alguem tenha interesse em estudar mais sobre o assunto.
Link para download dos scripts: http://1drv.ms/1MIPd4f
Para aqueles que assistiram a palestra, gostaria de agradecer pela presença e assim que as gravações estiverem disponiveis para download e assistir, prometo atualizar todos do mesmo.
Obrigado,
Marcos Freccia
SQL Server MVP
E-Book – SQL Server Além do Conceito – Blog post collection
Olá pessoal,
Estou muito feliz em comunicar o lançamento deste e-book na qual eu e mais 14 amigos criamos e publicamos o e-book: SQL Serve Além do conceito – Blog Post Collection.
Vale ressaltar que este trabalho juntou os melhores posts escritos por cada um dos autores afim de criar um guia de aprendizado em SQL Server. Este e-book é gratuito, e sempre será.
Tive a oportunidade de contribuir com 3 posts aqui do meu blog. A partir da página 105 vocês podem prestigiar os conteúdos que escrevi.
Espero que vocês gostem do conteúdo aqui apresentado. Para realizar o download do mesmo, clique na imagem abaixo que você será redirecionado para o mesmo.
Abraços,
Marcos Freccia
SQL Server MVP
Recoverying Model Database
Recentemente tive algumas discussões a respeito de como proceder em caso a base de dados Model seja corrompida. A primeira coisa que escutei foi:
Nunca tivemos a base de dados model corrompida! É tão pequena que não teriamos problema
Bom, ai é que surge o problema! Se estamos pensando em um verdadeiro cenário de Disaster Recovery, nada pode passar despercebido por nós, nem mesmo aquela pequena base chamada de model. Se você quer saber um pouco mais sobre a mesma, indico a leitura do link abaixo.
https://msdn.microsoft.com/en-us/library/ms186388.aspx Read the rest of this entry
O Falso Full Recovery Model
Olá pessoal,
Sempre temos aquela percepção de que realizando a mudança do recovery model para FULL a base automaticamente estará nesse recovery model, o que não é verdade.
Para comprovar esse fato, podemos visualizar nas imagens abaixo.
Como você pode ver isso nos levaria a crer que a base está no recovery model FULL, porém isso é o que chamamos de PSEUDO-FULL, acreditamos que a base está, mas a informação esta errada. Para comprovar precisamos realizar a seguinte consulta.
Como você pode ver, não possuímos um backup base para criarmos o nosso backup-chain ou a cadeia de backups. Para realmente estar em Full Recovery Model precisamos realizar o primeiro backup full.
Realizando um backup Full nos asseguramos que nossa base de dados está em Full Recovery Model e possuímos um backup como base para iniciar nossa cadeia de backups.
É importante estar ligado nessa informação, pois o PSEUDO-FULL pode nos levar a problemas com o Transaction Log File estourar o espaço em disco.
Espero que tenham gostado dessa informação!
Marcos Freccia
SQL Server MVP