Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2017
Merged

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

merged 1 commit into from
Jun 23, 2017

Conversation

glennsarti
Copy link
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