Category Archives: SQL Server

The most read posts of July – 2017

PS: Portuguese version below

Hi Everyone,

In case you are wondering the most read blog posts of July – 2017, here they go. Also, if you have never read them, you may do so now Smile.

1) Transaction log cheio? E agora? – 371 views – Posted on 13.06.2011

2) Configurando Linked Server de SQL Server para Oracle – 275 Views – Posted on 15.06.2012 Read the rest of this entry


SQL Saturday 656 Denmark – I am going!

Hi everyone!

I’m not sure if you guys know it, but on October 07th, 2017 we will have another amazing SQL Saturday 656 that it is taking place in Copenhagen, Denmark.

Surely, it will be an amazing day of learning and network from the Data Platform Experts that are coming from all places. So, if you are an IT person and is not quite sure yet on what do to on Oct, 7th, join this FREE event. You can get all the details from the home page.

Two things that are important to mention! Read the rest of this entry

How to connect Python and SQL Server – Part 2

Hey Guys,

In my first blog post about Python and SQL Server, I gave a very short introduction in how to actually connect and execute a simple query. Today I want to extend a bit on using Python and SQL Server.

As I described in the end of the previous post the ideal scenario is that you inherit the database connection from a single file and then use it whenever and anywhere you want. This makes your code to look cleaner and eliminate redundant work in case you need to change credentials or something else. For that I will show to you how to do it. Read the rest of this entry

An error occurred while setting up a binding for the column

Hello Guys!

I just wanted to do this quick blog post to give you a tip about a recent problem that I had in a SSIS Project. My scenario is the following.

Source Database Server: PostgreSQL
Target Database Server: SQL Server 2016

As you can see, I need to extract data from this PostgreSQL database and import in SQL Server. So far everything is working, but today I got this error of in one particular table: [OLE DB Destination [25]] Error: An error occurred while setting up a binding for the “MyColumnName” column. The binding status was “DT_NTEXT”. The data flow column type is “DBBINDSTATUS_UNSUPPORTEDCONVERSION”. The conversion from the OLE DB type of “DBTYPE_IUNKNOWN” to the destination column type of “DBTYPE_WVARCHAR” might not be supported by this provider. Read the rest of this entry

How to connect Python and SQL Server

Hi everyone!!

Lately I have been studying a bit of Python that I intend to use at work for some projects and also for learning a new language. I would recommend for you to also learn it, because as you know Python is coming to SQL Server 2017. The thing is that with Python you can use in your Machine Learning models, build Websites using some other frameworks such as: Django or Flask and even automate trivial tasks of your daily basis.

However, something that I know from the top of my head now is: Python was not designed in the first hand to deal with Microsoft SQL Server as a backend database. You don’t find lot’s of examples, the documentation sometimes is a bit misleading and errors and more errors that you cannot even imagine. If you search about Python + MySQL, Python + PostgreSQL, you will find lots of examples out there. I am not saying this is bad or anything, but it is just the way it is. Read the rest of this entry

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

The overlapped instance error

One of the possible scenarios for SQL Server FCI to AG migration is adding a third node to the Windows Failover Cluster and creating an Availability Groups between the FCI and the third standalone SQL Server, or having one node as FCI and the other node as a standalone SQL.

In my case I am running with the second option. I have one node with SQL Server 2014 FCI and the other node SQL Server 2016 Standalone, but the servers are in the Windows Cluster. When you try to create the Availability Groups between them you get the following error. Read the rest of this entry

Berlin Azure Global Bootcamp 2017 – Scripts & Slides

Hi Guys,

Last saturday (24.03) I had the pleasure of doing my first talk outside Brazil and my first one in Berlin where I could talk a bit of Azure SQL Database in the Azure Global Bootcamp that happened at Microsoft Berlin. First of all, I would like to thank Anton Staykov and Tyrone Guiamo for inviting me for talking at the event, it was really cool. The talk was very interesting and I’ve got some very good questions. Something it is also worth to mention is that slowly companies in here are looking more and more for Microsoft Azure and specifically for Azure SQL Database. 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

Codificando Night Week – Estarei Palestrando








Ola pessoal,

Na proxima segunda-feira dia 13/03 inicia mais um Codificando Night Week, onde teremos 5 dias de muito conteudo tecnico. Neste evento teremos SQL Server, Asp.Net, Microsoft Azure, Infraestrutura, Desenvolvimento Mobile e muito mais.

Terei o prazer de palestrar falando sobre Azure SQL Database e como migrar sua base de dados. O foco da minha apresentacao sera mostrar o Azure SQL DB como alternativa rapida a adocao do SQL Server na sua empresa e quais os pontos de atenção na hora de migrar o banco de dados. Vamos bater um papo sobre esses assuntos e espero contar com a presenca de todos vocês.

Para os que ficaram interessados em assistir segue abaixo maiores detalhes sobre a minha participação em especifico. E claro que no próprio site voce podera ficar interado sobre os demais assuntos que serão abordados durante a semana.

Data: 13/03/2017 19:00 as 20:00

Assunto: Migrando sua base de dados local para o Azure SQL Database

Palestrante: Marcos Freccia

Para realizarem as inscrições, vocês podem acessar diretamente o site do evento que segue logo abaixo.

UPDATE: Gostaria de agradecer a presenca de todos voces na apresentacao de ontem. Segue abaixo o PPT utilizado e tambem toda a apresentacao esta disponivel no youtube.


Espero vocês na minha sessão.


Marcos Freccia