Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
johnnydevv
New Member

Error when setting destination in copy data activity (MS Fabric)

Hi all,

 

In my Fabric workspace, I have a pipeline with a "Copy Data" activity.

The source is a lakehouse.

I am trying to set the destination to be SQL Server.

I have put in the server name, username and password. I also checked the checkbox for "Use encrypted connection".

When I click connect, I get this error (The remote computer refused the network connection), shown in snapshot below:

 

johnnydevv_0-1732377751264.png

 

I also have remote connections enabled via SSMS,

johnnydevv_1-1732378058939.png

 

My SQL Server instance is running on a Docker container (which was turned on the whole time I tried connecting from Fabric).

 

Please help.

Many thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @johnnydevv ,

 

Thanks for the reply from lbendlin .

 

According to your description, are you trying to write Lakehouse data to SQL Server? I tested it and it is possible. The gateway needs to be configured in advance, here are the steps I tested.

 

Configure the gateway connection of the corresponding database of the SQL Server you want to connect to, as shown below:

vhuijieymsft_0-1732522574435.png

vhuijieymsft_1-1732522574440.png

 

Use the pipeline's Copy data assistant.

vhuijieymsft_2-1732522607128.png

 

Select a table in a lakehouse as a data source.

vhuijieymsft_3-1732522607142.png

 

After selecting SQL Server Database in the Destination stage, enter the corresponding database information. This information needs to be consistent with what you entered when configuring the gateway. The system will automatically select the corresponding gateway, and then select Next.

vhuijieymsft_4-1732522617785.png

vhuijieymsft_5-1732522617794.png

 

Finally, click Save and Run.

vhuijieymsft_6-1732522628534.png

 

This is the result after a successful run.

vhuijieymsft_7-1732522628541.png

 

Go to the corresponding database of SQL Server and you can see that the table has been loaded.

vhuijieymsft_8-1732522641547.png

 

If this doesn't help you resolve the issue, please try to let me know what you did.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

View solution in original post

3 REPLIES 3
johnnydevv
New Member

Thanks @Anonymous ! It worked.

Installing a standard gateway was the missing piece for me. Once I did that, I was able to create the connection as you outlined.

 

Thanks a million!

Anonymous
Not applicable

Hi @johnnydevv ,

 

Thanks for the reply from lbendlin .

 

According to your description, are you trying to write Lakehouse data to SQL Server? I tested it and it is possible. The gateway needs to be configured in advance, here are the steps I tested.

 

Configure the gateway connection of the corresponding database of the SQL Server you want to connect to, as shown below:

vhuijieymsft_0-1732522574435.png

vhuijieymsft_1-1732522574440.png

 

Use the pipeline's Copy data assistant.

vhuijieymsft_2-1732522607128.png

 

Select a table in a lakehouse as a data source.

vhuijieymsft_3-1732522607142.png

 

After selecting SQL Server Database in the Destination stage, enter the corresponding database information. This information needs to be consistent with what you entered when configuring the gateway. The system will automatically select the corresponding gateway, and then select Next.

vhuijieymsft_4-1732522617785.png

vhuijieymsft_5-1732522617794.png

 

Finally, click Save and Run.

vhuijieymsft_6-1732522628534.png

 

This is the result after a successful run.

vhuijieymsft_7-1732522628541.png

 

Go to the corresponding database of SQL Server and you can see that the table has been loaded.

vhuijieymsft_8-1732522641547.png

 

If this doesn't help you resolve the issue, please try to let me know what you did.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

lbendlin
Super User
Super User

You are trying to write back into an on-premise storage?  I don't think that is supported.  But you can do it the other way round - from your SQL sever connect to the SQL endpoint of the Lakehouse.

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.