Remove-SCSQLDeployment
Menghapus penyebaran SQL Server dari profil SQL Server.
Sintaks
Remove-SCSQLDeployment
[-SQLDeployment] <SQLDeployment>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Deskripsi
Cmdlet Remove-SCSQLDeployment menghapus penyebaran Microsoft SQL Server dari profil SQL Server.
Contoh
Contoh 1: Menghapus penyebaran SQL Server dari profil SQL
PS C:\> $SQLProfile = Get-SCSQLProfile -Name "SQLProfile01"
PS C:\> $SQLDeployment = Get-SCSQLDeployment -SQLProfile $SQLProfile -Name "SQL Deployment 01"
PS C:\> Remove-SCSQLDeployment -SQLDeployment $SQLDeployment
Perintah pertama mendapatkan objek profil SQL Server bernama SQLProfile01 dan menyimpan objek dalam variabel $SQLProfile.
Perintah kedua mendapatkan objek penyebaran SQL Server bernama SQL Deployment 01 dari profil SQL yang disimpan di $SQLProfile lalu menyimpan objek dalam variabel $SQLDeployment.
Perintah terakhir menghapus penyebaran SQL Server yang disimpan dalam $SQLDeployment dari profil SQL Server yang disimpan di $SQLProfile.
Parameter
-Confirm
Meminta Anda mengonfirmasi sebelum menjalankan cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Menentukan variabel di mana kemajuan pekerjaan dilacak dan disimpan.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Menentukan ID tip Performa dan Pengoptimalan Sumber Daya (pro tip) yang memicu tindakan ini. Parameter ini memungkinkan Anda mengaudit tips PRO.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Menunjukkan bahwa pekerjaan berjalan secara asinkron sehingga kontrol segera kembali ke shell perintah.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SQLDeployment
Menentukan penyebaran SQL Server yang dihapus cmdlet ini.
Type: | SQLDeployment |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Menunjukkan apa yang akan terjadi jika cmdlet berjalan. Cmdlet tidak dijalankan.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Output
SQLDeployment
Cmdlet ini mengembalikan objek SQLDeployment .