How do I grant myself admin access to a local SQL Server instance?

后端 未结 6 1536
一个人的身影
一个人的身影 2020-12-04 06:49

I installed SQL Server 2008 R2 to my local machine. But, I can\'t create a new database because of rights (or lack of).

\"CREATE DATABASE PERMISSION D

6条回答
  •  广开言路
    2020-12-04 07:31

    Its actually enough to add -m to startup parameters on Sql Server Configuration Manager, restart service, go to ssms an add checkbox sysadmin on your account, then remove -m restart again and use as usual.

    Database Engine Service Startup Options

    -m Starts an instance of SQL Server in single-user mode.

提交回复
热议问题