Commit 4db71f2
Get-DbaPermission - Fix Azure SQL DB compatibility
- Skip server-level permissions query on Azure (unsupported sys.server_* views)
- Replace SUSER_SNAME(owner_sid) with database-scoped subquery on Azure
- Both changes are gated on $server.IsAzure to avoid changing non-Azure behavior
Fixes #9612
(do Get-DbaPermission)
Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>1 parent 8987045 commit 4db71f2
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
337 | 347 | | |
338 | 348 | | |
339 | 349 | | |
| |||
354 | 364 | | |
355 | 365 | | |
356 | 366 | | |
357 | | - | |
| 367 | + | |
358 | 368 | | |
359 | | - | |
| 369 | + | |
360 | 370 | | |
361 | 371 | | |
362 | 372 | | |
| |||
0 commit comments