<p>I need to programmatically enable READ COMMITTED SNAPSHOT in SQL Server. How can I do that?</p>

```
```
ALTER DATABASE [dbname] SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK AFTER 20 SECONDS
```
```