You must enabled Named Pipes after installing MDT and Creating a Database.

Launch SQL Server Configuration Manager – SQL Server Network Configuration – Protocols – Named Pipes – Select Enabled.

Otherwise, you will get SQL Connection Errors.