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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
DataMiner
New Member

R Script connect to SQL Server

I have a Power BI report which gets data from a R Script. My R script connects to a SQL server, does data transformations and then returns a data frame. So in essence, can an R script connect to a SQL server from inside Power BI? The library I've been using in R to connect to the SQL server is RODBC.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@DataMiner,

 

Yes, you may refer to the post below.

https://community.powerbi.com/t5/Desktop/R-script-fails-to-load-more-than-14999-rows/td-p/16146

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@DataMiner,

 

Yes, you may refer to the post below.

https://community.powerbi.com/t5/Desktop/R-script-fails-to-load-more-than-14999-rows/td-p/16146

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DataMiner
New Member

I have a Power BI report and I want to use an R Script as my data source. My R script connects to a SQL server and does data transformations and returns a data frame. Is it possible for Power BI to use my R script. In essence, can Power BI get data from a R script which connects to a SQL server?

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.