You have created linked service for dedicated SQL pool and then tried to access the serverless sql pool data. That is the reason for this error. You cannot select the serverless SQL pool from the dropdown while creating linked service. if you try to choose the database name it shows only the dedicated pool. So, you can enter connection details manually by choosing Enter Manually option.
- In order to do this manually, you have to get the fully qualified domain name for your serverless database.
- To get that, In the Azure portal, go to the synapse workspace that you have deployed.
- In the overview page, you can get the fully qualified domain name for your serverless database.
- Copy the endpoint and paste this fully qualified domain text box of linked service. [FQDN looks like
xxx-ondemand.sql.azuresynapse.net
] - Similarly copy the serverless database name from the azure portal and paste it in the database name text box.
- Choose the authentication type and enter credentials.
This is the way to create linked service for serverless SQL pool.