SQLServerPSModule icon indicating copy to clipboard operation
SQLServerPSModule copied to clipboard

Invoke-Sqlcmd parameter -AccessToken should be a PSObject

Open Matteo-T opened this issue 2 years ago • 0 comments

It would be beneficial to allow passing an entire and not just the Token.

Not that the Invoke-Sqlcmd uses the metadata that comes with the whole AccessToken (like ExpireOn, UserID, etc...), but it would save the trouble of having to .Token on it + make it consistent with the other cmdlets that (in v22) are happy to take a full AccessToken.

Matteo-T avatar Mar 29 '23 15:03 Matteo-T