Perform State Service Database Operations

Scenario/Problem: You need to perform various database operations on the underlying state service databases.

Solution: Use the SPStateServiceDatabase cmdlets.

Many database operations can be performed on the state service databases. You can display a listing of available cmdlets by issuing the command line shown in Listing 18.9. Figure 18.3 shows the result.

Listing 18.9. Command Line to Display the Database Operations

SPStateServiceDatabase -?

Image

Figure 18.3. Displaying the available state service database operations.

Use any of the provided cmdlets to perform the desired database operation.

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.