SSMS on VM unable to locate Machine Data Sources

Dan Dehaven (ADMIN) 21 Reputation points
2022-03-31T19:34:58.983+00:00

I'm trying to add a Linked Server in SSMS to a SQL Managed Instance on a VM in Azure using an OLE DB Provided for ODBC. I have created both 32 and 64 bit System and User DSNs but none are located when I try to create the Linked Server in SSMS.

I have done this before on server machines in AWS and on-premise but this is the first time with an Azure VM.

I do have a Integration Runtime ODBC connected to the VM's Machine Data Sources and able to pull data into Data Factory. But Ideally I'd like to be able to add the Linked Server within SSMS.

Thank you,
Dan

Azure SQL Database
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,021 questions
{count} votes

Accepted answer
  1. Erland Sommarskog 121.6K Reputation points MVP Volunteer Moderator
    2022-04-01T21:05:53.773+00:00

    In your original post you said: "I 'm trying to add a Linked Server in SSMS to a SQL Managed Instance". An SQL Managed instance runs SQL Server which is why I suggested that you should use an OLE DB provider for SQL Server.

    Now you are saying that you want to connect to something completely different. In that case, you would need an OLE DB provider for that data source, and if there isn't any but there is an you would use MSDASQL + ODBC.

    I am getting confused over what your setup is. Are you running an Azure SQL Managed instance, or you are you running SQL Server in an Azure VM? In the latter case, you should be able to set up the linked server with help sp_addlinkedserver. If you are running a Managed Instance, you cannot create a linked server to NetSuite, as Microsoft will not permit you install the ODBC driver.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2022-03-31T20:50:02.317+00:00

    Please configure your Azure VM to connect to the Azure Managed Instance by following the steps provided in this tutorial.

    You can also create a VM and add it to an existing VNET where the Azure Managed Instance was created. Please see this ARM template. You can easily implement the template from here.

    0 comments No comments

  2. Dan Dehaven (ADMIN) 21 Reputation points
    2022-03-31T22:08:42.747+00:00

    @Alberto Morillo thank you for sharing the tutorial!

    I had set up the MI in that way originally but the VM created from the template was publicly open and my IT team asked me to use an existing VM that is more secure.

    We created a subnet for the managed instance on the Virtual Network that the VM runs in and I am able to access the MI from SSMS on the VM.

    Is there a way use the template but set the networking to more secure?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.