Skip to content

Commit 1cfd7d5

Browse files
authored
Merge pull request MicrosoftDocs#628 from tseward/patch-315
Update Set-SPExcelDataProvider.md
2 parents 64b7231 + 7dbd549 commit 1cfd7d5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Set-SPExcelDataProvider.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ For permissions and the most current information about Windows PowerShell for Sh
3232

3333
### --------------------EXAMPLE---------------------
3434
```
35-
C:\PS>$provider = Get-SPExcelServiceApplication -Identity "MyExcelService" | Get-SPExcelDataProvider | where {$_.providerID -eq "SQLOLEDB" }
36-
37-
C:\PS>Set-SPExcelDataProvider $provider -Description "The SQLOLEDB provider description has changed."
38-
39-
C:\PS>$provider | format-table
35+
PS C:\>$provider = Get-SPExcelServiceApplication -Identity "MyExcelService" | Get-SPExcelDataProvider | where {$_.ProviderID -eq "SQLOLEDB" }
36+
PS C:\>Set-SPExcelDataProvider $provider -Description "The SQLOLEDB provider description has changed."
37+
PS C:\>$provider | format-table
4038
```
4139

4240
This example retrieves the SQLOLEDB data provider from the list of safe data providers that is on the Excel Services Application Web service application named MyExcelService, as an object, adds a new display description and then displays the provider output in a Command Prompt window, formatted as a table.

0 commit comments

Comments
 (0)