cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mmattar
Responsive Resident
Responsive Resident

Difference in Get Rows(V2) Vs. Execute SQL Query(V2) - For SQL

Hello all,

 

I would like to know the difference between Get Rows(V2) and Executing a SQL Query, is one more usefel than the other etc. ? 

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @mmattar,

The Get Rows(V2) supports a wide range of OData query string operators that enable you to select, filter, and order the data you request. When executing it without any filter query, its return value is the whole table.

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-...

 

Executing a SQL Query is more like SQL query syntax, the outputs of this operation are dynamic.

 

You could use both of them to fulfill your needs just you like.

Best Regards,
Community Support Team _ Lin Tu
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

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @mmattar,

The Get Rows(V2) supports a wide range of OData query string operators that enable you to select, filter, and order the data you request. When executing it without any filter query, its return value is the whole table.

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-...

 

Executing a SQL Query is more like SQL query syntax, the outputs of this operation are dynamic.

 

You could use both of them to fulfill your needs just you like.

Best Regards,
Community Support Team _ Lin Tu
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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (1,258)