Skip to content

(MODULES-4915) Remove forced TCP connection for SQL management#224

Merged
jpogran merged 1 commit intopuppetlabs:masterfrom
glennsarti:modules-4915-additional-connect-info
Jun 23, 2017
Merged

(MODULES-4915) Remove forced TCP connection for SQL management#224
jpogran merged 1 commit intopuppetlabs:masterfrom
glennsarti:modules-4915-additional-connect-info

Conversation

@glennsarti
Copy link
Copy Markdown
Contributor

Previously the module tried to connect to the SQL instance using the name
localhost. This had the side effect of always using the TCP based connection.
If a customer used a non-default Port (common practice) then the sql_connection
would not connect. This commit instead changes the Datasource to use the '.'
moniker which denotes the local machine. However this instructs the OLE DB
provider to use the enabled protocols enabled for the native client instead of
only using TCP. This means it will prefer to use the Shared Memory protocol if
enabled. Also the Shared Memory protocol is required to be enabled for the SQL
Server Agent process on SQL Server 2016.

Previously the module tried to connect to the SQL instance using the name
localhost.  This had the side effect of always using the TCP based connection.
If a customer used a non-default Port (common practice) then the sql_connection
would not connect.  This commit instead changes the Datasource to use the '.'
moniker which denotes the local machine.  However this instructs the OLE DB
provider to use the enabled protocols enabled for the native client instead of
only using TCP.  This means it will prefer to use the Shared Memory protocol if
enabled.  Also the Shared Memory protocol is required to be enabled for the SQL
Server Agent process on SQL Server 2016.
@jpogran jpogran merged commit e87c9a6 into puppetlabs:master Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants