Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Will do a test today On Mar 22, 2018, at 7:18 AM, Adam Driscoll <email@example.com<mailto:firstname.lastname@example.org>> wrote: @mkellerman<https://github.com/mkellerman> Can you try setting TotalItems on Out-UDGridData? $totalRows = Invoke-SqlCmd "SELECT COUNT(*) FROM xyz" Invoke-SqlCmd "SELECT * FROM xyz" | Out-UDGridData -TotalItems $totalRows — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#42 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AI-aRxnHGEj9gt8a_XoYA6kgnJG0Tvjuks5tg5akgaJpZM4SujAp>.
After some more testing, I found that Invoke-SqlCmd was not returning a scalar value. This test passes integration:
I fixed the issue where piping Invoke-SqlCmd to Out-UDGridData (#43) didn't work so try adjusting accordingly but the above script works fine with the 1.5.2 code base.