How to add Sysadmin login to SQL Server?

前端 未结 2 1083
南笙
南笙 2020-12-09 08:48

I have installed SQL Server 2008 using Windows Authentication in my laptop for my own use. I want to add Sysadmin account/role using SQL Server Login type. I checked this po

2条回答
  •  遥遥无期
    2020-12-09 09:06

    'sysadmin' is a role, 'sa' is the 'system administrator' sql-login.

    If you installed just using Windows Authentication (default mode), the 'sa' account is already there, but will be disabled by default. Look under YourServerName -> Security -> Logins in Management Studio, and you should see 'sa' with a down-arrow in the icon (symbolises a disabled user)

    You have to log in using an account with sufficient privileges (if your installation account has sysadmin privileges that will work), then enable 'sa' and set a password.

提交回复
热议问题