Backup Path in SMO?
还没有人认领这个 Issue。
评估
调研方向
首先查看 SMO 的备份历史 API 以及 issue 中描述的 Get-DbaBackupHistory 用法,尤其是来自 mediafamily.physical_device_name 的 T-SQL 值。确定现有属性或方法是否能够提供备份路径,并在无需该查询即可通过 SMO 获取路径时视为工作完成。
由索引模型根据 Issue 内容生成。
描述
Did we miss any sort of property or method that would show the Path in the Backup History? We ended up using a bunch of T-SQL in Get-DbaBackupHistory as seen in the Path (mediafamily.physical_device_name) property seen below.
ComputerName : sqlcs
InstanceName : MSSQLSERVER
SqlInstance : sqlcs
AvailabilityGroupName :
Database : model
DatabaseId : 3
UserName : sqladmin
Start : 01/19/2022 1:15:33 PM
End : 01/19/2022 1:15:33 PM
Duration : 00:00:00
Path : {C:\temp\model-Full-202201192215.bak}
TotalSize : 2.83 MB
CompressedBackupSize : 475.72 KB
CompressionRatio : 6.09
Type : Full
BackupSetId : 1
DeviceType : Disk
Software : Microsoft SQL Server
FullName : {C:\temp\model-Full-202201192215.bak}
FileList : {@{FileType=D; LogicalName=modeldev;
PhysicalName=C:\MSSQL\MSSQL15.MSSQLSERVER\MSSQL\DATA\model.mdf}, @{FileType=L;
LogicalName=modellog;
PhysicalName=C:\MSSQL\MSSQL15.MSSQLSERVER\MSSQL\DATA\modellog.ldf}}
Position : 1
FirstLsn : 36000000136600001
DatabaseBackupLsn : 0
CheckpointLsn : 36000000136600001
LastLsn : 36000000136900001
SoftwareVersionMajor : 15
IsCopyOnly : False
LastRecoveryForkGUID : 90d16058-f1d1-4e96-8ec6-8d7bfda42f15
RecoveryModel : FULL
KeyAlgorithm :
EncryptorThumbprint :
EncryptorType :
- 主要语言
- C#
- 星标
- 143
- 派生
- 28
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/sqlmanagementobjects 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 3/5 1-2 天 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 74/100
-
难度 3/5 1-2 天 新手友好度 78/100
-
难度 3/5 1-2 天 新手友好度 68/100
查看 microsoft/sqlmanagementobjects 的全部 Issue
相似的 Issue
-
:watch: Not Triaged dotnet-fsharp/svc
难度 1/5 1 小时以内 新手友好度 90/100
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
难度 2/5 1-3 小时 新手友好度 76/100
Azure/azure-sdk-for-net#63292 · 3 条评论 · 1 个 reaction ·
-
Issue-Enhancement Needs-Triage
难度 1/5 1 小时以内 新手友好度 86/100
PowerShell/PowerShell#28061 · 2 个 reaction ·
-
dependencies needs-team-triage server-Azure.Mcp
难度 2/5 1-3 小时 新手友好度 72/100
-
aspnet-core/svc aspnetcore-signalr/subsvc doc-enhancement Pri2 SignalR
难度 1/5 1 小时以内 新手友好度 88/100
dotnet/AspNetCore.Docs#37729 ·