Force a named pipes connection

To force a named pipes connection to your database, prepend the name in your connection string with “np:”.

E.g.

np:(local)\SQL1; ….

This entry was posted in C#, MS SQL Server. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *