cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sdg8481 Frequent Visitor
Frequent Visitor

SQL to Streaming Dataset

Hi, i'm hoping that you can help.

 

I've been looking for hours but have been unable to find a solution. Basically i need to be able to link a SQL Server Database to act as the source for a Streaming Dataset in PowerBI.

 

I have been able to create a streamining data and a powershell script using the provided code, but i just don't know to get the dataset to be fed from the SQL server. I'm obviously missing the main part, but very stuck, so any help would be greatly apprecated. Please see details below:

 

SLQ Database details are:

Server = '10.8.35.99'
Database = 'TEST_TEST'

Table = MyDatatable

 

The PowerBI Generated Power Shell code:

$endpoint = "MYENDPOINTURL"
$payload = @{
"Extension" =98.6
"AgentState" ="AAAAA555555"
"DateTimeLastStateChange" ="2019-03-19T12:04:42.066Z"
"ReasonCode" =98.6
"SKillGroupSkillTargetID" =98.6
"AgentName" ="AAAAA555555"
"Duration" =18
}
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: SQL to Streaming Dataset

Hi @Sdg8481 ,

You can refer to following blog to know how to use powershell to extract data from sql databse:

6 methods to write PowerShell output to a SQL Server table

Notice: please do mask on sensitive data.

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |
1 REPLY 1
Community Support Team
Community Support Team

Re: SQL to Streaming Dataset

Hi @Sdg8481 ,

You can refer to following blog to know how to use powershell to extract data from sql databse:

6 methods to write PowerShell output to a SQL Server table

Notice: please do mask on sensitive data.

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 264 members 2,671 guests
Please welcome our newest community members: