Open theabraxas opened 5 years ago
I believe I have an old example of using parameterized queries with this cmdlet. Please remind me this week unless you figure it out before.
Sweet, thanks!
On Sun, Feb 3, 2019 at 10:05 PM gallman notifications@github.com wrote:
I believe I have an old example of using parameterized queries with this cmdlet. Please remind me this week unless you figure it out before.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/theabraxas/UltimateDashboard/issues/14#issuecomment-460140313, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3MvAvsIlEZrWwBoBWcsWMbWm5HoFWDks5vJ825gaJpZM4agjmo .
I haven’t checked the latest version of the SqlServer module but the dbaTools module supports parameterized queries via their Invoke-DbaSqlQuery function.
Getting some errors like the following when imported data as variables include single quotes or similar characters:
I've heard
Invoke-Sqlcmd2
might have a solution to this, this might be a better way forward