List all Ole DB Providers in Powershell

In Microsoft documentation for OleDbEnumerator.GetRootEnumerator() method
there's a C# example how to list all Ole DB Providers. I've just rewritten it in Powershell, creating a function that returns a list of providers, so it's easier to work with and can be filtered.
It's useful to check which providers are installed . . .

Read More

Posted in: oledbpowershell

June 21, 2016

PostgreSQL "Could not resolve client IP address to a host name" error

Using hostnames in pg_hba.conf

Since PostgreSQL 9.1 it's possible to use host names in pg_hba.conf.

I'm using it in a server and I got this error from a Java's client application trying to connect to it:

Caused by: org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "", user "my_user", . . .

Read More

Posted in: postgresql

June 03, 2016

Using functions on columns instead on literals

I always hear from developers that DBAs are against the use of ORMs (like Hibernate) without any reason. Before being a DBA, I was a developer and I recognize that I like to use ORMs because it makes it easier but you should always have in mind what’s beyond the ORM’s classes and what queries are executed by the ORM.

In other words: . . .

Read More

April 20, 2016

SQL Server vs PostgreSQL: fighting for resources in the same server


Notice: This is not the typical performance’s comparative between SQL Server and PostgreSQL. I only test their performance’s affectation when they run in the same server, that I would never do.

We were asked: “Is it possible to run SQL Server and a PostgreSQL in the same server?”

Obviously, . . .

Read More

April 20, 2016

Learning in Internet’s era

In the last post of the year I’ll talk about knowledge and how we are continuously learning. The idea of the topic comes from a Packt Publishing offer: selling books for Xmas for $5.

It doesn’t matter our job, it’s changing, so we’ve to evolve too. In fact, I don’t know any job that you don’t have to improve your skills continuously . . .

Read More

April 20, 2016

SETVAL for all sequences in a schema

In PostgreSQL, when you’re working with sequences, if you insert a future value due to the incrementing values, you will get an error when that value is going to be inserted. I like much more how SQL Server handles autoincrement columns with its IDENTITY property, that would be like the sequences linked to a table like SERIAL, but it’s much . . .

Read More

April 20, 2016

Review of Getting Started with OrientDB book

Disclaimer: I was asked to review the Getting Started with OrientDB book and I received a free ebook copy of it.

OrientDB is defined in its website as: an Open Source GraphDB with a mix of features taken from Document Databases and Object Orientation. It’s a new and promising database. But it’s has little documentation and . . .

Read More

April 20, 2016