I am trying to change password, using the code below.. The code below is in a stored proc and I am passing these parameters from a web application.....
Server: Msg 15210, Level 16, State 1, Procedure sp_password, Line 20
Only members of the sysadmin role can use the loginame option. The password was not changed.
I made my user part of the db_securityadmin role, but that does not help...
How can I give the above mentioned permissions, so that when user cust1 logs on then he can chnage his own password from the web application as long he has given his old password correctly?
I am looking to create an ASP w/ functionality to change user's SQL password. Many do not have access to EM or Query Analyzer and need a website to visit. Has any had expirience w/ this prior?
hi, all: I installed a Sql 2000 Personal Edition in my Laptop,now I want to change my Sql 2000 sa account password. but I can not find where I can get the default password for sa account and how to change it .
HI!I have a little problem:I have change the administrator password (Windows 2003 Server) which MSSQL 2000 use to login.And now the SQL server can't stand up.What should I do?thx!gicio--Posted via http://dbforums.com
I have one server out of 6 that lets me logon as SA with the default password of null. If I run this command to change the password I get password changed, but it did not change it, I still can logon as SA with the NULL password.
The old administrator left and I am learning slowly. Since his password was changed, SQL cannot start. I get an error 1069 login failed. Maybe you have a good idead I haven't thought of?
I've searched this forum and was surprised to not find this asked before - Is there any way to change SA's password (we have managed to lose it somehow)? And we do have physical access to our SQL Server of course...if that helps.
Dear experts, i'm getting problem with sql server 2000. actually i changed the service from automatic to manual, right from that day,sql server is not working on my machine.when i checkd in the properties of sql server registration, it is showing some around 8 letter password. actually i will connect with sa and password sa.
where should i change the password? is there any other solution?
or is it better to uninstall and install again? if so what about my databases?
ikram writes "i have to changed the password of sql server and after password change it is not assassable form the network. some of my friend tell me that you will have to change some configuration form server side file. he dont know that file exactly. please tell me the soloution.
I am newbie at SQL server, we have sql 7.0, sql2000 and sql2005. we need to change SA password but developers claim they have hardcode the SA password.
anyone can tell me where developers hardcode this SA password? what are the files i need to look up? if they hardcode it, impossible to change?
I have a SQL JOB that I inherited that uses FTP to xmit some data. When I attempt to change the password within the FTP job a window warns me that files will be deleted. My question is are these files just sytem buffers or will any important files get the axe ? Thx in advance. Lou
When using osql from a command prompt the following script was run: EXEC sp_password 'Current Password', '', 'TestLogin'
We were trying to set a password for a login to blank, but now cannot access login into the application because the application was looking a blank password for this user but the password would not work for blank.
Note ---This client only has MSDE installed, not SQL Enterprise.
If the script is run from Query Analyzer it works fine.
The script should have been this: EXEC sp_password 'Current Password', Null, 'TestLogin'
It should have explictly stated NULL for the new password but it wasn't done.
Is there anyway to reset the password without knowing the existing password. No other logins exist. They tried logging into the system with no password, '',"". I am not sure what the password was set to.
Howdy - I am using SQL 7.0. I have done some research using the Books On Line and I do not find any documentation on how to change the sa password using a SQL Script. Can anyone point me in the right direction?
I newly installed the SQL Server 2005.During installation i chose the option Mixed Mode.I aslo did nit mention any user name and password to the SQL Server.Iam able successfully create Databases using the SQL Server Management Studio. My problem iam unable to connec to the SQL Server from my .net windows application.My application code is
Dim strCon As String Dim sValue As String Dim strQuery As String Dim dsEventTransac As New DataSet Dim daEventTransac As New SqlClient.SqlDataAdapter Dim rowCount As New Integer Dim oWebService As New WebReference.TkmService 'Dim nwRow As DataRow 'Dim delCmd As SqlClient.SqlCommand
strQuery = "SELECT * FROM EventTransaction"
strCon = "Data Source=localhost;integrated security=SSPI;initial catalog=KmsDb;User ID=sa;password=" objCon = New SqlClient.SqlConnection(strCon) If objCon.State = ConnectionState.Closed Then objCon.Open() End If daEventTransac = New SqlClient.SqlDataAdapter(strQuery, objCon) Dim cmdBuilder As New SqlClient.SqlCommandBuilder(daEventTransac) daEventTransac.Fill(dsEventTransac)
'update the DataAdapter daEventTransac.Update(dsEventTransac) oWebService.Url = "http://192.168.0.10/TkmService1/TkmService.asmx"
''display the table in a grid dgEventTransac.DataSource = dsEventTransac.Tables(0)
Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub
Private Sub DataGrid1_Navigate(ByVal sender As System.Object, ByVal ne As System.Windows.Forms.NavigateEventArgs) Handles dgEventTransac.Navigate
End Sub End Class
When i donot specify user ID and password i get connected correctly.But when i run the above code i get an error "Unable to connect to the remote server" Now i want to change the username and password.Please tell me how to do
I newly installed SQL Server 2005 .I did not mention any username and password during installation.But now i want to specify one.Can you tell me how to do so .My Operating System is WindowsXp.
Theres a script that the SQL workprogram instructs someone to run which shows the last change date for a users password. Within the results of the script theres two rows of dates and I would like to know which date indicates the "last password change date"
We have an application using SQLDMO tried to change password. From the trace file, it seems the application used a "SP_password" and the operation failed. However, the application returns its own message which doesn't help us at all in finding the reason. I wonder if SQL server can somehow track the operation(password change) and report a message if it failed. Does anybody know if SQL server 2005 have such type of functionality? Or what could be the possible reasons of the operation failed. (The new passowrd fullfill the requirement of window policy.)
We are wanting to change the SA password on one of our Sql server 2012. My question is what are the implications? Will our agent jobs still run? SSIS packages still run under agent jobs? Is there a proper way/how to change SA password?
Hi, I was wondering if it is possible to change the password on a SQL Server 2000 DTS package programatically instead of justmanually using the the interface? I have over 150 DTS packages used for building BI data cubes and our password policy requires a password change every 60 days. I would like to write a windows vb.net application that loops through all the DTS packages and changes the password. Please advise. Thanks Chris
I have installed WebMatrix and MSDE and have been able to successfully make a connection from WebMatrix to MSDE. I am used to using SQL Server with Enterprise Manager but I do not have that available to me right now so I'm using MSDE instead. I followed the setup instructions on the WebMatrix tutorial and setup MSDE with an SA password. I would now like to change the password to something else. Is there a command that I can use to do that? There is no Enterprise Manager so I'm kind of stumped. Thanks in advance for your help.
If someone can tell if it is wise change the SA account password after all of your databases have been set up using NT Authentication for login. Also, by using the sa password at login are you providing more security and and who should have access to that password (Your developers or your Administrators?)
Ugh! Someone changed the password of our SQL Server service account. It is called syssql, and it is used by the MSSQLServer and SQL Executive services to log in at startup. After the password was changed, we noticed that replication wasn’t running, and since I know that replication uses the Executive service, I restarted that service using the new password. That worked to get replication working again, and since the boxes were production machines I didn’t restart the MSSQLServer service with the new password yet. Now, our syssql account keeps on locking up every so often, and scheduled tasks that use xp_sendmail stopped working, and alerts stopped sending. Is this happening because of the MSSQLServer service still being logged in with the old password? I suspect that the SQL Mail logs in through the MSSQLServer service, which is still using the old password, and the login failures are causing the syssql account to lock. Any other ideas???
I have instaled SQL Server2000 in Administrator user login.My OS is Windows Adavance Server2000. It works Fine. If i change my Administrator Password and Login with the new Password then Sql Server dosn't Run.It says Authentication error if i try to run from service. I belive DBA's in this forum can help me out.