Код ошибки 0x534 Sqlstate 42000 ошибка 15404

Задаваемые 13 лет, 0 месяцев

Я создаю репликацию SQL Server с помощью сценария. Когда я пытаюсь выполнить

Это задание, созданное сценарием, определяющим репликацию.

Как мне отладить это?

Have you ever changed Server name on which SQL Server instance is installed? One of my friends changed the hostname of a Windows server with SQL Server already installed. After this, the SQL Server maintenance plan jobs started to fail. As we know, internally SQL Server still shows the old hostname this must be dropped manually. Otherwise your SQL Server maintenance plan jobs fail with this error.

In this post, I will show you the procedure to resolve the errors and execute the SQL Server Agent Maintenance Plan jobs successfully. Below is the error screenshot showing job failure in the SQL Server agent logs. The error is highlighted in the image in red.

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

First, connect to your SQL Server instance with SQL Server Management Studio and run the below queries to check SQL Server name:

In the below screenshot, the server name and machine name are different.

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

Run the below shown T-SQL scripts to drop the old server name, and then it add back the SERVERNAME to match the operating system’s hostname.

In the below screenshot, first we dropped old server name.

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

In the below screenshot, we have added new server name using T-SQL.

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

Now, We need to reset the owner of the job associated with the maintenance plan by running the below T-SQL query. In below screenshot, reset the owner of the job.

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

Right click on SQL Server job and select properties and change the owner of job to “sa” login.

Delete old maintenance plan and re-create the maintenance plan. Right click and click execute maintenance plan. You can see maintenance plan executed successfully

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

Senior SQL Engineer, MCP

Сведения

attributeЗначение Название продуктаSQL Server Идентификатор события15404 Источник событияMSSQLSERVER КомпонентSQLEngine Символическое имяSEC_NTGRP_ERROR Текст сообщенияНе удалось получить сведения о пользователе/группе Windows NT «пользователь«, код ошибки код_ошибки.

Объяснение

15404 используется при проверке подлинности, если указан недопустимый участник. Или олицетворение учетной записи Windows не выполняется, так как не существует связи полного уровня доверия между учетной записью SQL Server и учетной записью домена Windows.

Действие пользователя

Убедитесь, что участник Windows существует и его имя указано верно.

Если эта ошибка — результат отсутствия связи полного уровня доверия между учетной записью службы SQL Server и учетной записью домена Windows, то ошибку можно устранить одним из следующих способов.

Используйте для службы SQL Server учетную запись из домена, к которому относится пользователь Windows.

Если SQL Server использует учетную запись компьютера, например Network Service или Local System, то домен, на котором находится пользователь Windows, должен доверенную связь с компьютером.

EXECUTE AS LOGIN=’ADSme’ Go

I also executed that command with the service account:

EXECUTE AS LOGIN=’ADSmyserviceaccountname’

Command(s) completed successfully.

If it is a SQL issue, could it be that ADSme doesn’t have permission to execute a system stored procedure in order to perform the ADS query? To answer my own question, it seems like the service account would be doing this and not my ADSme account.

Читайте также:  Письмо ДФМиВК Банка России от 04.10.2019 № 12-4-5/6091

One more thing you can try: Can you install a test-only copy of SQL Server 2005 (i. SQL Server Express) using a different account for the service? (it could be a different machine). If you can install it, can you try the same EXECUTE AS LOGIN tests?

I’ll see if I can try that test on my local SQL instance.

Got it, I misunderstood that part; I apologize for the confusion. Thanks for the clarification.

I am having the same exact problem. I even test on my test SQL server and I get the same message. I am not sure where to start to solve this problem. Any help?

Please, if you need further assistance let us know the scenario that were you are hitting this issue.

Can you help me out?

Hello,I am also getting the same error (15404) as Syndrake. I have tried all of Raul’s suggestions with the same results.

Please correct me if my assumption is incorrect:

· Domain-A trusts Domain-B, but Domain-B doesn’t trust Domain-A

· SQL Server is installed on a Domain-A machine

In order to work, SQL Server should be running under a Domain-B service account, otherwise it is very likely that Domain-B will not accept the token from the service and fail.

Thanks for replying to my post.

Actually, Domain A trusts Domain B and Domain B trusts Domain A. Full 2-Way trust.

SQL Server machine was a member of Domain A but now has joined Domain B. Domain A will be going away.

Previous Working Scenario

Agent job runs successfully. Domain ASQLAgentAcct while logged into Domain A is able to get information about Domain BDeveloper. I assume because of the 2-way trust.

Non-working Scenario. Attempting to take Domain A out of the picture.

Like Syndrake, I was able to log into the server as Domain BSQLAgentAcct and add Domain BDeveloper to local groups. The check names function works great. So, you would think Domain BSQLAgentAcct would have adequate permissions to query AD.

What is the service account for SQL Server? The AD query should be running using the AD credentials (if coming from SQL Server Engine).

In the non-working scenario, the SQL Server service is running as a local account that does not have domain access to Domain B. I set it up this way because I thought it was the SQL Agent account that was actually doing the AD query.

I am going to do some more testing, but I think that the SQL Server service account was my problem.

Thank you very much, Raul.

We have this issue also. I’m going to try maybe setting the trust for delegation rights on the sql svc acct? Could this be a double hop kerberos issue?

Читайте также:  РЯДОМ ОШИБКИ 4516 НА ИВА

Has anyone found any fix for this?

On The SQL Server, error 28005 was constantly logged in the event log:

On the Domain Controller(s) of domain «ALPHA» I could also find event id 4769 and Failure Code 0xc, which translates to KDC policy rejects request Workstation/logon time restriction.

Service Information: Service Name: cifs/DC1. alpha. corp Service ID: S-1-0-0

Enable ‘Allowed to authenticate‘ security setting for the service account BETAsqlservice on the domain controllers computer object in domain ALPHA:

Could not obtain information about Windows NT group user

I am creating a SQL Server Replication using a script. When I try to execute

This is a job created by a script that defines replication.

How do I debug this?

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

9 Answers 9

Active Directory is refusing access to your SQL Agent. The Agent should be running under an account that is recognized by STAR domain controller.

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

We encountered similar errors in a testing environment on a virtual machine. If the machine name changes due to VM cloning from a template, you can get this error.

If the computer name changed from OLD to NEW.

A job uses this stored procedure:

Which uses this one:

Which I guess is correct, under the circumstances. We added a script to the VM cloning/deployment process that re-creates the SQL login.

Код ошибки 0x534 Sqlstate 42000 ошибка 15404

In my case I was getting this error trying to use the IS_ROLEMEMBER() function on SQL Server 2008 R2. This function isn’t valid prior to SQL Server 2012.

Instead of this function I ended up using

Significantly more verbose, but it gets the job done.

Just solved this problem. In my case it was domain controller is not accessible, because both dns servers was google dns.

I just add to checklist for this problem:

I was having the same issue, which turned out to be caused by the Domain login that runs the SQL service being locked out in AD. The lockout was caused by an unrelated usage of the service account for another purpose with the wrong password.

I had to connect to VPN for the publish script to successfully deploy to the DB.

In our case, the Windows service account that SQL Server and SQL Agent were running under were locked out in Active Directory.

Ошибка 0x534 при создании схемы данных

Помощь в написании контрольных, курсовых и дипломных работ здесь.

Ошибка при создании схемы данныхДобрый день! Помогите пожалуйста решить проблему! Я создаю базу данных в Access для производства.

Ошибка при создании базы данныхЗдравствуйте!Столкнулся с проблемой: при попытке добавить базу данных в решение(правой.

Ошибка при создании базы данныху меня одна проблема я удалил базу данный по имени ShopDB Сейчас хочу создать опять по такой же.

Ошибка при динамическом создании данныхПриветству. Ррешил я поставить альфа скин в программе, заменил pagecontrol на TsPageControl.

Читайте также:  Что делать, если не удается оплатить банковской картой в Интернет-магазине

Добавлено через 23 минуты Удалось получить доступ, переименовав имя для входа в «безопасность, имена для входа». Не думал, что это как-то исправит ошибку

Ошибка при создании Базы ДанныхДоброго Времени Суток! Я установил MySQL Server и следующий код по плану должен был создавать файл.

Ошибка при создании базы данныхСоздаю базу данных следующей командой: create database имя базы;, но в ответ получаю сообщение об.

Ошибка при создании источника данныхЗдравствуйте, помогите пожалуйста. Проблема заключается в следующем: Создал обычное оконное.

Ошибка при создании базы данныхДоброй ночи! Все никак не могу совладать с ошибкой. Есть вспомогательный класс DBHelper public.

Microsoft. SQLServer. 2012. Could_not_obtain_information_about_Windows_NT_group_user_1_5_Rule (Rule)

Active Directory отказывает в доступе вашему агенту SQL. Агент должен работать под учетной записью, которая распознается контроллером домена STAR.

ответ дан 24 мар ’14, в 20:03

Мы столкнулись с аналогичными ошибками в тестовой среде на виртуальной машине. Если имя машины изменится из-за клонирования ВМ из шаблона, вы можете получить эту ошибку.

Если имя компьютера изменилось с СТАРЫЙ на НОВЫЙ.

Задание использует эту хранимую процедуру:

Который использует этот:

Создан 21 фев.

Создан 08 фев.

В моем случае я получал эту ошибку, пытаясь использовать IS_ROLEMEMBER() функция на SQL Server 2008 R2. Эта функция недействительна до SQL Server 2012.

Вместо этой функции я использовал

Значительно более подробный, но он выполняет свою работу.

Создан 08 янв.

Просто решил эту проблему. В моем случае это был недоступен контроллер домена, потому что оба DNS-сервера были DNS-серверами Google.

Я просто добавляю в контрольный список для этой проблемы:

ответ дан 04 авг.

У меня была такая же проблема, которая, как оказалось, была вызвана тем, что вход в домен, который запускает службу SQL, заблокирован в AD. Блокировка была вызвана несвязанным использованием учетной записи службы для другой цели с неправильным паролем.

В сообщениях об ошибках, полученных из журналов агента SQL, не упоминается имя учетной записи службы, а только имя пользователя (владельца задания), который не может быть аутентифицирован (поскольку он использует учетную запись службы для проверки с помощью AD).

ответ дан 04 мар ’15, в 00:03

Мне пришлось подключиться к VPN, чтобы сценарий публикации успешно развернулся в БД.

Создан 01 июля ’19, 18:07

В нашем случае учетная запись службы Windows, под которой работали SQL Server и агент SQL, была заблокирована в Active Directory.

Создан 12 июля ’19, 13:07

Я только что получил эту ошибку, и оказалось, что мой администратор AD удалил учетную запись службы, используемую КАЖДЫМ экземпляром SQL Server во всей компании. Слава богу, у AD есть своя корзина.

Посмотрите, сможете ли вы запустить Пользователи и компьютеры Active Directory служебную программу (% SystemRoot% system32 dsa. msc) и убедитесь, что учетная запись, на которую вы полагаетесь, все еще существует.

ответ дан 26 мая ’20, 23:05

Не тот ответ, который вы ищете? Просмотрите другие вопросы с метками

sql
sql-server
replication
sql-server-agent

or задайте свой вопрос.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *