Change or add password to SQL Server

Results 1 to 8 of 8
  1. #1
    Ronin Dev John is offline
    MemberRank
    Mar 2011 Join Date
    /dev/nullLocation
    382Posts

    Change or add password to SQL Server

    ON ENGLISH

    Option #1:

    1. Open the SQL Server (Windows authenticate)
    2. Open a “New Query” in the left sidebar
    3. execute the next command
    GO
    ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master]
    GO
    USE [master]
    GO
    ALTER LOGIN [sa] WITH PASSWORD=N'-PASS-' MUST_CHANGE
    GO
    4. Change -PASS- for your new password.
    5. Press enter and enjoy!.
    6. Restart SQL Server with SQL Server authentication.




    Option #2:
    1. Open the SQL Server (Windows authenticate).
    2. In Object Explorer, open Security folder, open Logins folder. Right Click on SA account and go to Properties.


    3. Change SA password, and confirm it. Click OK.


    4. Restart SQL Server with SQL Server authentication.



    Login: Is sa
    Password: Your password of SQL
    By: John Am Torres




    EN ESPAÑOL
    Opción #1:
    1. Abre el SQL Server (Autenticación de windows)
    2. Abre una “Nueva consulta” en la barra de la izquierda.
    3. Ejecuta el siguiente comando:
    GO
    ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master]
    GO
    USE [master]
    GO
    ALTER LOGIN [sa] WITH PASSWORD=N'-PASS-' MUST_CHANGE
    GO
    4. Cambia: -PASS- por la nueva contraseña.
    5. Presiona enter y listo!.
    6. Reinicia el SQL ahora con Autenticación de SQL Server-




    Opción #2:
    1. Abre el SQL Server (Autenticación de windows).
    2. En el explorador,abre la carpeta seguridad, abre la carpeta usuarios, clic derecho en SA, y luego en propiedades.


    3. Cambia la contraseña de SA, confirmala, y luego presiona aceptar.


    4. Reinicia el SQL pero ahora con Autenticación de SQL Server.



    Login: es sa
    Password: La contraseña del SQL
    Por: John Am Torres
    Last edited by John; 10-10-12 at 01:13 AM.


  2. #2
    Member D4rkMoD is offline
    MemberRank
    Sep 2011 Join Date
    Lima-PerúLocation
    50Posts

    Re: Change or add password to SQL Server

    Muy bueno es algo esencial para la protección de las base de datos.

  3. #3
    Unknown marcuel is offline
    MemberRank
    Mar 2010 Join Date
    499Posts

    Re: Change or add password to SQL Server

    i have this error
    Attached Thumbnails Attached Thumbnails error.png  

  4. #4
    Ronin Dev John is offline
    MemberRank
    Mar 2011 Join Date
    /dev/nullLocation
    382Posts

    Re: Change or add password to SQL Server

    Quote Originally Posted by marcuel View Post
    i have this error
    You don't have a instance name (SQLEXPRESS\), you need restart the installation with instances of SQL.

  5. #5
    Unknown marcuel is offline
    MemberRank
    Mar 2010 Join Date
    499Posts

    Re: Change or add password to SQL Server

    i already finish it and run it, i uninstall then install it again, and i check all settings. thanks for this, reputation added.
    Last edited by marcuel; 10-10-12 at 01:37 AM. Reason: update

  6. #6
    Unknown marcuel is offline
    MemberRank
    Mar 2010 Join Date
    499Posts

    Re: Change or add password to SQL Server

    i have error with i relogin.

    sorry i can't attach file i have low connection.

    error says.

    Additional information:
    ->Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, error: 18452)

    can anyone help me with these error,

    anyone help me with these error?

  7. #7
    Enthusiast darkgenzt15 is offline
    MemberRank
    Jun 2012 Join Date
    49Posts

    Re: Change or add password to SQL Server

    same problem marcuel -.-

  8. #8
    Ronin Dev John is offline
    MemberRank
    Mar 2011 Join Date
    /dev/nullLocation
    382Posts

    Re: Change or add password to SQL Server

    Quote Originally Posted by darkgenzt15 View Post
    same problem marcuel -.-
    Read my answer.



Advertisement