
- MS SQL CLIENT FOR WINDOWS HOW TO
- MS SQL CLIENT FOR WINDOWS 64 BIT
- MS SQL CLIENT FOR WINDOWS UPDATE
- MS SQL CLIENT FOR WINDOWS 32 BIT
HKLM\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo.HKLM\SOFTWARE\WOW6432Node\Microsoft\MSSQLServer\Client\ConnectTo.Furthermore you can confirm that you see the appropriate records in the following registry locations:.
MS SQL CLIENT FOR WINDOWS 64 BIT
When I tried my 64 bit alias GPOSQLAlias64 it failed (expected behavior). You can see the connections below resolve properly. If the values were the same for both the 32 and 64 bit alias as briefly mentioned in step 1, it wouldn't matter.
MS SQL CLIENT FOR WINDOWS 32 BIT
Here I am using SSMS which is a 32 bit process, so I need to pass the 32 bit alias.
Test your connection from your remote machine. MS SQL CLIENT FOR WINDOWS UPDATE
Go to your client machine and force the GP update (making sure that it meets the requirements of where you configured the GPO).Ĭomputer Policy update has completed successfully. Then you can mark it as Enabled and can select "Show…" for both values and enter in the appropriate string. Then go to Classic Administrative Templates and right-click and select "Edit".
This will prompt you to select a file. Create a new Template through Policies -> Administrative Templates -> Right-click and select "Add/Remove Templates…".
Right-click the new GPO and select "Edit…". In this example, I am creating the object " SQLAliasGPO" and put it at the top of the domain. Make sure you select the proper location when creating the object (whether it be at the top of the domain or inside the OU containing the computers where you wish to create the alias). Open Group Policy Management and right-click in the desired location and select "New GPO" to create a new object. KEYNAME "SOFTWARE\WOW6432Node\Microsoft\MSSQLServer\Client\ConnectTo" KEYNAME "SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo" For this example, I named the file "SqlAliasGPO.adm"ĮXPLAIN "This list of SQL Server aliases will be deployed to users which are affected by this GPO !". Create a new text file, paste the script in there, and save it with a sensible name with an. Below you can see an example I used for my machine that differentiates alias' for 32 and 64 bit processes (for your environment you’ll likely want them to be the same but I separated them to show proof of concept).
Now that we got that out of the way, let's get started!
The FQDN of the node I am trying to create an Alias for is , and is running a named instance of SQL called "PUBDIS".
I used a domain admin account for this process. In my lab there is only one DC, so replication isn't in consideration. SQL Server editions tested are SQL 2017 and SQL 2012. However before we get started, here are some things to keep in mind:ġ) We strongly suggest trying this in a test environment before pushing to productionĢ) Relevant system/environmental information for this repro: I figured this would be be great walk-through to broadcast to a larger audience. I successfully reproduced this in my lab and confirmed the same process worked for the customer in question. The desired result was to have users be able to connect to using a simple CNAME that could easily be changed in the future, if needed. MS SQL CLIENT FOR WINDOWS HOW TO
This week I had an interesting question proposed by a customer on how to implement a group policy that would generate the proper SQL Server alias records on all machines in the domain.