Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
can someone show me how to write a dataframe df to a table in a Warehouse in Fabric?
I try below code, but having issue... I suppose there is no username or password involved here:
Solved! Go to Solution.
hello @Anonymous
Prepare the JDBC URL with the correct endpoint, database name, encryption, and authentication
dw_url = (โjdbc:sqlserver://<your_server_identifier>.datawarehouse.fabric.microsoft.com:1433;โโจโDatabaseName=WideWorldImportersDW;โโจโencrypt=true;โโจโAuthentication=ActiveDirectoryPasswordโ)
Provide authentication details in the connection properties
dw_properties = {โจโdriverโ: โcom.microsoft.sqlserver.jdbc.SQLServerDriverโ,โจโuserโ: โyour_username@yourdomain.comโ,โpasswordโ: โyour_passwordโ โจ}
Write the DataFrame to the target table in the Data Warehouse
df.write.jdbc(url=dw_url, table=โdbo.Employeeโ, mode=โoverwriteโ, properties=dw_properties)
hello @Anonymous
Prepare the JDBC URL with the correct endpoint, database name, encryption, and authentication
dw_url = (โjdbc:sqlserver://<your_server_identifier>.datawarehouse.fabric.microsoft.com:1433;โโจโDatabaseName=WideWorldImportersDW;โโจโencrypt=true;โโจโAuthentication=ActiveDirectoryPasswordโ)
Provide authentication details in the connection properties
dw_properties = {โจโdriverโ: โcom.microsoft.sqlserver.jdbc.SQLServerDriverโ,โจโuserโ: โyour_username@yourdomain.comโ,โpasswordโ: โyour_passwordโ โจ}
Write the DataFrame to the target table in the Data Warehouse
df.write.jdbc(url=dw_url, table=โdbo.Employeeโ, mode=โoverwriteโ, properties=dw_properties)
Hi @Anonymous , Thank you for reaching out to the Microsoft Community Forum.
Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.
specail thanks to @nilendraFabric for your prompt reply
Hi @Anonymous , Thank you for reaching out to the Microsoft Community Forum.
Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.
Hi @tanthiamhuat88 , Thank you for reaching out to the Microsoft Community Forum.
Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!