How to change sa password in SQL Server 2008 express?

后端 未结 5 1836
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 14:20

I have installed SQL Server 2008 express and logging in through windows authentication, it doesn\'t allow me to do anything. How do i change \'sa\' password or gain full pri

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 14:35

    If you want to change your 'sa' password with SQL Server Management Studio, here are the steps:

    1. Login using Windows Authentication and ".\SQLExpress" as Server Name
    2. Change server authentication mode - Right click on root, choose Properties, from Security tab select "SQL Server and Windows Authentication mode", click OK Change server authentication mode

    3. Set sa password - Navigate to Security > Logins > sa, right click on it, choose Properties, from General tab set the Password (don't close the window) Set sa password

    4. Grant permission - Go to Status tab, make sure the Grant and Enabled radiobuttons are chosen, click OK Grant permission

    5. Restart SQLEXPRESS service from your local services (Window+R > services.msc)

提交回复
热议问题