Forum Discussion
Certifiticate problem w enterprise gateway import mode, when direct mode works ok
- 10 years ago
I found the link within the refresh history on the gateway to be helpful. https://msdn.microsoft.com/en-us/library/ex6y04yf%28V=VS.110%29.aspx?f=255&MSPPError=-2147217396
In short, I was using the server shortname but the cert had the FQDN. So i used the FQDN in the connection so that the connection string matches the cert. Was a very simple fix.
I found the link within the refresh history on the gateway to be helpful. https://msdn.microsoft.com/en-us/library/ex6y04yf%28V=VS.110%29.aspx?f=255&MSPPError=-2147217396
In short, I was using the server shortname but the cert had the FQDN. So i used the FQDN in the connection so that the connection string matches the cert. Was a very simple fix.
The above link does not give me information on how to determine the FDQN, or at least I am missing or not able to understand how to get it. Is there somewhere on the SQL server that can identify this?
- jameslo309 years agoAdvocate III
You can obtain your FQDN by typing the following into PowerShell:
[System.Net.Dns]::GetHostByName(($env:computerName))
If you run that from the SQL server host, it will give the FQDN.
- Kbersani9 years agoAdvocate I
Thank you. I was able to find the FQDN (assuming it is the HostName) - I have entered this as my server but I am now getting an error that it is unable to connect "cannot connect to the server". Again it works fine when using direct query, just not on import. looks like you were having the same issue, did you find resolution?
- jameslo309 years agoAdvocate III
I had to set an SSL certificate against the SQL Server. When you install the Enterprise Gateway, it creates an SSL certificate on the local server. If you have installed the Enterprise Gateway on the SQL server, you can assign the SSL certificate through SQL Server Configuration Manager.
SQL Server Network Configuration > Right click > Properties > Certificate > Select "Data Management Gateway SSL Certificate" > OK
You'll have to restart SQL services.
Should be OK after that!