Change SQL Server password - sql-server

I´m trying to create a login for my SQL Server, using user/password, not Windows auth, but after I create the login and set its password, if I right-click on it and check its properties, its password is a 15-character password I don´t know.
I´ve already changed to SQL Server and Windows Authentication mode on server properties, since I saw that was a solution in another post, but I´m still having this issue. After that changed, restarted my pc in order to apply changes.

Related

Microsoft SSMS User password

I'm trying to connect Visual Studio to my local database using Microsoft SSMS, but when I try to create a new user, his password isn't what I have chosen. I have also tried modifying the "sa" user, but nothing helped because password is always the same and I can't get it. I want a user so I can connect my DB to Visual studio using SQL authentification. How could I change the user password?
Screenshot:
I solved this problem by using another method...i connected using Windows authentication instead so I didn't have to write credentials for any user, but just send server name

Logins created in SQL Server Management Studio are not able to log in

I've been working to try and connect an ASP.NET application to an IIS Site running in an App Pool using Integrated Security. I was eventually unsuccessful in that attempt until I made the Login I'd created to represent the App Pool a Sysadmin, which I understand is not a good thing to leave in there. It's on localhost, but it still makes me uneasy.
So I decided to try to use a Login/Password combo instead of Integrated Security. To that end, I created a new Login in my SQL Server Management Studio:
And told it to use a password, making sure that I know what the password and username are.
My Default database is master
Server Roles is only 'public'
In User Mapping I added db_owner to one of my databases, and all the others are only 'public'
In Securables, 'Connect SQL' is Granted to the SQLEXPRESS server
I then disconnected from SSMS and tried to reconnect using my newly-created Login.
It didn't allow me to log in:
According to:
https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-login
After creating a login, the login can connect to SQL Server, but does not necessarily have sufficient permission to perform any useful work.
However, that appears to not be the case in this instance. What am I doing wrong?
I did make sure that my Server Authentication was set correctly, per SQL Server 2008 can't login with newly created user
Another data point: when I try (and fail) to log in 10 times in rapid succession and then go back in with Windows authentication, the 'Login is locked out' notification in the Status tab is not checked.
The thing I was missing was going to Windows Services, and restarting SQLEXPRESS to get the change to 'SQL Server and Windows Authentication Mode' to take effect.
After I did that, I was able to log in with my testuser.

SQL Server 2014 Password Won't Change

I recently set up SQL Server 2014 Express on my computer. During the installation process I merely selected Windows authentication, assuming I would be able to create other accounts later. I tested several things with C# using integrated authentication.
The problem arose when I attempted to use an account. I logged in using Windows authentication to change the sa password in SQL Server Management Studio. But when I attempt to so, and close the dialog, open it again, then the password is back to the 15 character default which I do not know. Enforce Policy is not on and I have no idea what might be causing this...
You need to check if you've enabled mixed mode authentication by:
right click on Server name after you've logged in as a windows user
Click Properties
Click Security
Check that the 'SQL Server and Windows Authentication mode' option is selected.
Then you can change the password for sa by going expanding the Server item and going to Security -> Logins -> Right click on sa -> Click Properties
Change the password here and CLICK OK.
Log out, log back in as sa, after selecting SQL Server Authentication just above where you enter the user name.

What permissions do I need to give a SQL Server user that will be able to Query, Update and Delete

I created one, but for some reason, I can't either log into it from ssms, either from my computer or another one on the same network.
Will appreciate some help!
If the user you added is a SQL Server User, make sure that the Server instance has been configured to allow SQL Server Authentication. Depending on the Instance installation, it might be set to Windows Authentication Mode, in which case it'll only accept Windows Auth. SQL Users with username and password won't be able to log in.

Creating a SQL Login for Windows user

I have a .Net application that connects to a SQL Server over the network. The user logs in as the Windows user. The SQL Server is set up as Windows Authentication only. From the client machine, the user is not created on the SQL Server as a login yet. On the first startup of the application, the application needs to check if the windows user is a sql server login and if not, the login must be created by the .net application.
My question is with which user do I log in to the SQL Server to check if the login exists. Obviously it cannot be the current windows user, as this user must be created first and on first run does not exist on sql server.
I already know how to proceed once a connection is established, and need help on the correct login to use when the windows user does not exist as a login on SQL server. Keep in mind that the server is set up for Windows Authentication only.
All of this must be done through .net code (vb or c#).
Thanks for the help.
I do not fully understand your question, but answering it upon what I think you are asking:
You need to be logged in as the Administrator in Windows since you are using Windows Authentication Only.
Once you have logged in as Admin, Windows will recognise that and give you all the authentication rights so when you go into your SQL server these rights will automatically be passed on, allowing your to create new user permissions and grant access etc...
Let me know if this answers your question correctly.

Resources