Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server could not obtain information about Windows NT group/user 'DOMAIN\user_account'

I have cloned our Microsoft SQL to a new server. The server contains a few databases and "SQL Server Agent" jobs that run on a scheduled basis. I have tried changing all existing references to this new server name and use accounts on this new server. However I am still getting the following error in my error log and my jobs fails to run (btw, this is through Microsoft SQL Management Studio),

[298] SQLServer Error: 15404, Could not obtain information about Windows NT group/user 'DOMAIN\user_account', error code 0x534. [SQLSTATE 42000] (ConnIsLoginSysAdmin)

I've got a couple of Maintenance Plans which are pointing to the old server. For some unknown reason I can't edit the existing connection and I can't delete it. I can add a new one but the other connection can not be removed.

I need to know where I need to change for this error to go away and the jobs start running.

like image 938
Sam Avatar asked Oct 18 '25 01:10

Sam


1 Answers

This may be because SQL has the wrong server name in Master. Here is another article on the subject.

SQL Server Central Article

In order to fix this, run a search on Master with the following code:

use master
select SERVERPROPERTY('servername')
select @@SERVERNAME
select SERVERPROPERTY('machinename')
go

If you see the old server name in the list you will have to drop the server and add the new one

use master
exec sp_dropserver "OldServerNmae"
go

use master
exec sp_addserver "NewServerName","local"
go
like image 116
JWT Avatar answered Oct 20 '25 18:10

JWT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!