Cannot login to SQL Server 2008 remotely - Error 1326 - Incorrect user or pass - sql

I have a problem trying to connect to SQL Server 2008 SP3. It's really strange, I have looked everywhere for an answer and couldn't find anyone experiencing the same problems. I'll try to explain.
I can connect to my server locally, both using Windows login and SQL Server authentication, but when I try to connect remotely, I get error 1326 and an error message specifying Incorrect username or password.
Then I login locally to SQL, but the error log doesn't show up anything.
Yesterday, it showed the login errors, but now it's not showing up anymore. It's like it's trying to connect to another instance of SQL, though I checked by doing SELECT ##VERSION and running osql -L from the command line, and both of them show just one server instance running.
What's even more strange, I just tried stopping the SQL Server service and logging in again. It still shows the same error: 1326 - Incorrect username or password. It should have told me that the server cannot be found or something like that. How does it show incorrect user or pass when the server is offline?
Any kind of help would be greatly appreciated. Thank you very much in advance.

Related

How can I connect to SQL through RODBC?

I am trying to connect R to SQL to upload data and I do not manage to use the connection string. I have tried the following code:
I keep getting the error: "SQL Server does not exist or access denied."
dbhandle <- odbcDriverConnect('driver={SQL Server};server=local;database=db;trusted_connection=true')
I would like to ask you what could have gone wrong?
It is probably related to driver or server. Could you please tell me where exactly I can find these information?
Also, please notice I am using Windows Authentication.

sql server 2012 copy database failed between two instances on the same host

I am learning the sql server 2012 and got stuck when using the copy datase, trying to figure out why.
I created two instances on the same host, using administrator, windows authentication.
(the default instance:iZp0w14yqtvxcmZ, the second instance: iZp0w14yqtvxcmZ\instance2, try to copy database from the default one to the second one)
It failed at the last step: execute sql server agent job.
here is the error log from windows event viewer:
Message: Failed to connect to server iZp0w14yqtvxcmZ.
StackTrace: at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.OpenConnection(Server& server, ServerProperty serverProp)
InnerException-->Login failed for user 'NT Service\SQLAgent$INSTANCE2'.
Then I tried to add the login 'NT Service\SQLAgent$INSTANCE2' in the default instance. Then tried again and got another error:
Event Name: OnError
Message: An error occurred while transferring data. See the inner exception for details.
StackTrace: at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferExtraObjectsViaSmoTransfer()
InnerException-->Windows NT user or group 'iZp0wd5ebkvswaZ\Administrator' not found. Check the name again.
But the Adminitrator does exist in the computer management -> local user and groups -> group, so I don't know what to do now. NEED HELP !!!
Thanks a lot!
after two-day's struggling, I figured it out. The sql server agent service should use a domain-based account for a multi-server environment. Also that account should be able to log in and perform the job.
I solved the issue changing the login method to system local account.
Two instances must have the same password and open, then in this case:
insert into [EI7-PC\SQLEXPRESS2].[MYCOMPANY].[dbo].[inventory] SELECT *
FROM [EI7-PC\SQLEXPRESS1].[MYCOMPANY].[dbo].[inventory] where itemno='10-0001'
The reason for the same password is unknown, this is per my experience. With two different password you may get an error about 'sa' failed to login.

oracle sql developer- ora-12514 error

im using oracle sql developer to make my database, but now i stopped to work.
it wrote this:
An error was encountered performing the requested operation:
Listener refused the connection with the following error: ORA-12514,
TNS:listener does not currently know of service requested in connect
descriptor
Vendor code 12514
i also tried to make new connection but it didnt help
pls help me,i dont know what to do, i need this to do my homework
when i tried to change connection it wrote this:
An error was encountered performing the requested operation:
ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label. Vendor code 1031
Please check the services are running:
OracleOraDb11g_home1TNSListener and OracleServiceORCL.
You're going to have to do some troubleshooting; Here are a couple of suggestions:
ORA-12514 Tips
ORA-12514 TNS:listener does not currently know of service requested in connect descriptor
How to resolve error: ORA-12514
The service name ,you are using should be in sid column and not in service name entry box.
For example, the service name provided for you is overflow,you have to mention it in
ex:10.171.1.24:1521:overflow
Sid : overflow
Service : leave blank
Test the connection
Go to Services
check whether the "ORACLEServiceORCL" is running or not.
if not running then right-click on it and click start.
Your problem may solve this.
Happy coding :D
This worked for me- Close your SQL Developer and launch again.
I had the same issue after restarting my PC and could not access my local database. This fixed it.
Go to Run > services.msc > Services (Local) > OracleService
Right-click on OracleService > Properties > Log On
Make sure Local System Account is checked then press OK.
Stop the OracleService and restart it. It should be working now.
Mine was working fine till last night but this morning I found the said problem. I checked OracleOraDb11g_home1TNSListener and OracleServiceORCL was running and in "Started" status but still issue was there.
Just restarting both the services solved my issue. I suggest just try this once to save your time before exploring other solutions.

SQL Server agent not getting started

I am trying to start my sql server agent but it is not getting started . Showing the following Error- Object reference not set to an instance of an object.
I had made a scheduling a job.I tried to start the services from sql server configuration
but still it shows an error.I have try to start services from command prompt also but it is showing error-1067
this is a general windows error, not specific to sql server.
Check your windows log to get more info.
You can also try try to start SQL Agent from command with the -v switch to display the output to the diag screen.

Managed server not starting up however Admin console is up

Scenario:
If i try to start the server as a window service it gives an error stating that ceradentials are not correct.However on correcting the credentials in boot.properties when i try to start the server again it gives the same error.Any alternative for starting the server.I gave the same username and password in my startup Script and Boot.properties.
Scenario 2: If i start the server remotely through console then will it come up?
Thanks in advance.
Regards,
Preet
If i try to start the server as a window service it gives an error stating that credentials are not correct.
Then they aren't. Maybe provide more details on what you do exactly and the error message.
If i start the server remotely through console then will it come up?
First, if your credentials are not correct, then it won't change anything. Second, if you don't have a node manager configured, this won't be possible. Provide more details.