Ошибка субд login failed for user sa

I’ve written a very simple JDBC login test program. And after all kinds of problems I’ve almost got it working. Almost, just can’t seem to get past this problem:

SQLServerException: Login failed for user xxxxx

I created a simple database PersonInfo then I created user user1 password1 (SQL authentication). And after trying everything was unable to connect to the database.

I am using SqlServer2008 on Win 7, I’ve got the latest JDBC driver from Microsoft.

My code is:

import java.sql.*;

public class hell {
public static void main(String[] args) {
    
    try {
        Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance();
Connection conn=  DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=PersonInfo;user=Sohaib;password=0000;");


System.out.println("connected");
       }

    } catch (Exception e) {
        e.printStackTrace();
    }
}
}

Here’s the Exception

Exception: Unable to get connect
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'Sohaib'.
and all other supporting errors.

tshepang's user avatar

tshepang

12k21 gold badges91 silver badges136 bronze badges

asked Jun 28, 2013 at 19:51

The Code Geek's user avatar

2

Is your SQL Server in ‘mixed mode authentication’ ? This is necessary to login with a SQL server account instead of a Windows login.

You can verify this by checking the properties of the server and then SECURITY, it should be in ‘SQL Server and Windows Authentication Mode’

This problem occurs if the user tries to log in with credentials that cannot be validated. This problem can occur in the following scenarios:

Scenario 1: The login may be a SQL Server login but the server only accepts Windows Authentication.

Scenario 2: You are trying to connect by using SQL Server Authentication but the login used does not exist on SQL Server.

Scenario 3: The login may use Windows Authentication but the login is an unrecognized Windows principal. An unrecognized Windows principal means that Windows can’t verify the login. This might be because the Windows login is from an untrusted domain.

It’s also possible the user put in incorrect information.

http://support.microsoft.com/kb/555332

answered Jun 29, 2013 at 8:28

Bryan's user avatar

BryanBryan

3,2312 gold badges15 silver badges30 bronze badges

2

In my case, I had to activate the option «SQL Server and Windows Authentication mode», follow all steps below:

1 — Right-click on your server
enter image description here

2 — Go to option Security

3 — Check the option «SQL Server and Windows Authentication mode»

4 — Click on the Ok button
enter image description here

5 — Restart your SQL Express Service («Windows Key» on the keyboard and write «Services», and then Enter key)
enter image description here

After that, I could log in with user and password

Federico Navarrete's user avatar

answered Oct 10, 2019 at 18:40

Junior Grão's user avatar

Junior GrãoJunior Grão

1,3218 silver badges6 bronze badges

4

I ran into the same issue, and I fixed it by adding my windows username to SQL and then to my server, here is how I did:

First, create a new login with your Windows username:
enter image description here

Click Search, then type your name in the box and click check names.
enter image description here

Then add your that user to the server:

Right click on the Server > Permissions > Search > Browse > Select your user
(You will notice that now the user you created is available in the list)

enter image description here

I hope it helps ;-)

Federico Navarrete's user avatar

answered Apr 30, 2018 at 19:12

Roberto Rodriguez's user avatar

We got this error when reusing the ConnectionString from EntityFramework connection. We have Username and Password in the connection string but didn’t specify

«Persist Security Info=True».

Thus, the credentials were removed from the connection string after establishing the connection (so we reused an incomplete connection string). Of course, we always have to think twice when using this setting, but in this particular case, it was ok.

rene's user avatar

rene

41.3k78 gold badges113 silver badges151 bronze badges

answered Aug 19, 2019 at 15:13

Alexander's user avatar

AlexanderAlexander

5943 silver badges13 bronze badges

3

I got the same error message when trying to connect to my SQL DB in Azure (using sql-cli). The simple solution was to escape the password with single quotes like this:

mssql -s server.database.windows.net -u user@server -p 'your_password' -d your_db -e

answered Apr 19, 2017 at 15:19

Tobias's user avatar

TobiasTobias

8107 silver badges11 bronze badges

Also make sure that account is not locked out in user properties «Status» tab

answered Aug 16, 2017 at 7:55

irfandar's user avatar

irfandarirfandar

1,6901 gold badge23 silver badges24 bronze badges

I have also caught the same issue,But don’t worry the solution is so simple

We need to understand the basic terms first that this error “Login Failed for User (Microsoft SQL Server, Error: 18456)” means you entered invalid credentials when logging into SQL Server with specific server authentication type.
enter image description here

Where I have Selected the option of Windows Authentication mode in Server Authentication

and In my ConnectionString in appsettings.json file has the following connection string:

Server=DESKTOP-PK4BJF5;Database=lms;Trusted_Connection=false;MultipleActiveResultSets=true;TrustServerCertificate=true

In which the «trusted-connection» is a parameter used in database connection strings to specify the type of authentication to be used when connecting to a database server.

When «trusted-connection» is set to «true» or «SSPI» (Security Support Provider Interface), it means that the connection will use Windows Authentication to authenticate the user. This means that the credentials of the currently logged-in Windows user will be used to connect to the database server. This type of authentication is also sometimes referred to as «integrated security».

When «trusted-connection» is set to «false», it means that the connection will use SQL Server Authentication to authenticate the user. This means that the connection string will contain a user ID and password that are used to connect to the database server.

I am Updating the Connection String line and just write SSPI instead of /false

"Server=DESKTOP-PK4BJF5;Database=lms;Trusted_Connection=SSPI;MultipleActiveResultSets=true;TrustServerCertificate=true",

answered Apr 12 at 4:46

AYESHA JAVED's user avatar

For Can not connect to the SQL Server. The original error is: Login failed for user 'username'. error, port requirements on MSSQL server side need to be fulfilled.

There are other ports beyond default port 1433 needed to be configured on Windows Firewall.

https://stackoverflow.com/a/25147251/1608670

answered Oct 24, 2017 at 19:32

Ivan Chau's user avatar

Ivan ChauIvan Chau

1,4041 gold badge17 silver badges28 bronze badges

We solved our Linux/php hook to SQL Server problem by creating a new login account with SQL Server authentication instead of Windows authentication.

answered Jun 5, 2018 at 18:46

Charles Kuehn's user avatar

Just in case any one else is using creating test users with their automation….

We had this same error and it was because we had recreated the user (as part of the test process). This caused the underlying SID to change which meant that SQL couldn’t properly authenticate the user.

We fixed it by adding a drop login command to our testing scripts to ensure that a previously created user (with the same user name) was no longer present on the instance.

answered Aug 4, 2020 at 6:23

xenon8's user avatar

I faced with same problem. I’ve used Entity Framework and thought that DB will be created automatically. Please make sure your DB exists and has a correct name.

answered Oct 31, 2020 at 16:38

Сергей's user avatar

СергейСергей

7603 gold badges13 silver badges31 bronze badges

In my case I have configured as below in my springboot application.properties file then I am able to connect to the sqlserver database using service account:

url=jdbc:sqlserver://SERVER_NAME:PORT_NUMBER;databaseName=DATABASE_NAME;sendStringParametersAsUnicode=false;multiSubnetFailover=true;integratedSecurity=true
    jdbcUrl=${url}
    username=YourDomain\$SERVICE-ACCOUNT-USER-NAME
    password=
    hikari.connection-timeout=60000
    hikari.maximum-pool-size=5
    driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver

answered Jan 11, 2021 at 22:44

Elias's user avatar

EliasElias

6542 gold badges11 silver badges23 bronze badges

try using this connection string

Server=ServerName;Database=DbName;Trusted_Connection=SSPI;MultipleActiveResultSets=true;TrustServerCertificate=true

answered Jan 3 at 16:04

Saeed RayatMoghadam's user avatar

You can try this method: add Trusted_Connection=True; to your connection string.

Brian Tompsett - 汤莱恩's user avatar

answered Apr 29 at 10:36

Huseyn Hemidov's user avatar

If you are using Windows Authentication, make sure to log-in to Windows at least once with that user.

answered Feb 18, 2019 at 7:33

Farkhod's user avatar

FarkhodFarkhod

1964 silver badges8 bronze badges

Previously I was using the Windows Authentication without problems, then occurred me the error below.

«Failed to generate SSPI context.»

Witch I resolve by changing my connection string from

Server=127.0.0.1;Database=[DB_NAME];Trusted_Connection=True;

to

Server=127.0.0.1;Database=[DB_NAME];Trusted_Connection=False;

Then the next error occurred me

«Login failed for user ».»

To solve this problem I used the sa user. Access the sa user to update de password if you need (on the SQL server Security > Logins > sa (right click) > Properties > General)) and then update the connection string to..

Server=127.0.0.1;Database=[DB_NAME];User Id=sa;Password=[YOUR_PASSWORD]

You can use another user of your choice.

answered Mar 30, 2021 at 9:26

Jéssica Machado's user avatar

1

Ошибка 28000 80040E4D: Login failed for user ‘sa’, что делать

Данная ошибка говорит сама за себя, но это не значит, что всё может быть просто. Мне потребовалось час, чтобы выяснить реальную причину.

  • Менял пароли;
  • прописывал права;
  • нового пользователя создавал;
  • перезапускал службы;
  • грешил на firewall, хотя код ошибки был бы другой.

Для многих причина может очевидна, но я каждый день новые сервера не подключаю.

Основная причина

Неверное имя пользователя или пароля для базы данных на MSSQL

Решение

  • Внесите пароль в свойства базы сервера 1С повторно (если вы не давно его меняли или добавляете новую базу).
  • Проверьте раскладку.
  • Обратите внимание: все ли символы вводятся.
  • Замените пароль на базе данных непосредственно в консоли MS SQL Management

Альтернативная причина

У вас отключена авторизация на уровне SQL сервера при установке или после, об этом он пишет в логе,  но не в тексте ошибки. В свойствах сервера необходимо включить режим «SQL Server and Windows Autentification mode»

Включите: тогда после перезапуска сервера или службы MSSQLSERVER всё должно быть отлично.

Я знаю, что трачу половину денег на рекламу впустую, но не знаю, какую именно половину.

   Alexey87

29.01.10 — 11:32

поменял пароль для SA в Managment Studio, а в консоли серверов пароль не меняется пишет

Ошибка при выполнении операции с информационной базой

Ошибка СУБД:

Microsoft OLE DB Provider for SQL Server: Login failed for user ‘sa’.

HRESULT=80040E4D, SQLSrvr: Error state=1, Severity=E, native=18456, line=1

по причине:

Ошибка СУБД:

Microsoft OLE DB Provider for SQL Server: Login failed for user ‘sa’.

HRESULT=80040E4D, SQLSrvr: Error state=1, Severity=E, native=18456, line=1

   IronDemon

1 — 29.01.10 — 11:37

Удали и добавь ИБ

   IronDemon

2 — 29.01.10 — 11:38

1С пытается под старым паролем достучаться.

   Alexey87

3 — 29.01.10 — 11:41

щас попробую

   IronDemon

4 — 29.01.10 — 11:42

Только логи «потеряется»  :(

   Alexey87

5 — 29.01.10 — 11:43

базу удалять в консоли серверов или в Managment Studio?

   МаленькийВопросик

6 — 29.01.10 — 11:43

(5) ого!

   Дикообразко

7 — 29.01.10 — 11:44

да format c: делай сразу

   чувак

8 — 29.01.10 — 11:45

(5) Отчаянный однако :)

   МаленькийВопросик

9 — 29.01.10 — 11:46

1.в sql смотришь какой юзер зацеплен на твою базу — можно поменять пароль этого юзера в настройках

2.в консоле серверов 1с — свойства базы — там юзер с паролем должны быть такие же для базы в sql

3.Есть еще  такая вещь — типа срок действия пароля для логина истек — в sql сервере галка есть — типа пароль не ограничен.

   МаленькийВопросик

10 — 29.01.10 — 11:47

+(9) только чтобы зайти в свойства базы из консоли 1с — надо знать логин/пароль админа самой базы

   Alexey87

11 — 29.01.10 — 11:49

1.в sql смотришь какой юзер зацеплен на твою базу — можно поменять пароль этого юзера в настройках

2.в консоле серверов 1с — свойства базы — там юзер с паролем должны быть такие же для базы в sql

говорю же так и делаю, когда в консоли в свойствах базы меняешь пароль выдает эту ошибку

   Secret

12 — 29.01.10 — 11:49

(0) вместо кнопки [OK] ипользовать [Apply]

   Alexey87

13 — 29.01.10 — 11:50

галка стоит эта, я же в Managment Studio под sa захожу

   Alexey87

14 — 29.01.10 — 11:51

вместо кнопки [OK] ипользовать [Apply] — да делал уже

   МаленькийВопросик

15 — 29.01.10 — 11:52

(11) значит что-то не так делаешь…

   Alexey87

16 — 29.01.10 — 11:52

создал в Managment Studio sa1 с такими же правами, когда в косноли в свойтсвах базы пишу для sa1 ошибка вываливается для пользователя sa

   Дикообразко

17 — 29.01.10 — 11:53

а можно вообще win-авторизацией сделать

   МаленькийВопросик

18 — 29.01.10 — 11:55

какие права у sa?

   Alexey87

19 — 29.01.10 — 11:56

(18)все

   Megas

20 — 29.01.10 — 12:01

Блин! Тебе что сказали то ? =)

1) Открывай 1cv8 Servers (серверы 1с предприятия)
2) Удаляй от туда базу (только когда она спроси чё делать с SQL базой скажи что нечего делать не надо .. а на до оставить как есть!!! (Говорить надо в слух 3 раза!))
3) Вновь добавь базу с новым паролем для SA

   Alexey87

21 — 29.01.10 — 12:07

щас копия снимется, сделаю

   Alexey87

22 — 29.01.10 — 12:08

(20)Получается каждый раз при смене пароля для sa в Managment Studio я должен передобавлять таким образом базу?

   IronDemon

23 — 29.01.10 — 12:16

(22) Да

  

Alexey87

24 — 29.01.10 — 12:29

Заработало все, спасибо

Ошибка 28000 80040E4D: Login failed for user ‘sa’, что делать

Данная ошибка говорит сама за себя, но это не значит, что всё может быть просто. Мне потребовалось час, чтобы выяснить реальную причину.

  • Менял пароли;
  • прописывал права;
  • нового пользователя создавал;
  • перезапускал службы;
  • грешил на firewall, хотя код ошибки был бы другой.

Для многих причина может очевидна, но я каждый день новые сервера не подключаю.

Основная причина

Неверное имя пользователя или пароля для базы данных на MSSQL

Решение

  • Внесите пароль в свойства базы сервера 1С повторно (если вы не давно его меняли или добавляете новую базу).
  • Проверьте раскладку.
  • Обратите внимание: все ли символы вводятся.
  • Замените пароль на базе данных непосредственно в консоли MS SQL Management

Альтернативная причина

У вас отключена авторизация на уровне SQL сервера при установке или после, об этом он пишет в логе,  но не в тексте ошибки. В свойствах сервера необходимо включить режим «SQL Server and Windows Autentification mode»

Включите: тогда после перезапуска сервера или службы MSSQLSERVER всё должно быть отлично.

Впервые в истории планеты Земля все люди во всех странах задались единой целью: заработать столько денег, чтобы уподобиться героям рекламы.

  • Remove From My Forums
  • Question

  • I have VS2005 based .Net application that calls and execute SQL Server 2008 SSIS package and results to error.
    It works perfectly when I execute package by VS2005 or by selecting package file. Error occurs only with .net application. The SQL account UserName has db_owner rights to the database. The username and password have been defined in web.config

    Why this error occurs?

    This is error:
    -1071636471 SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: «Microsoft SQL Server Native Client 10.0» Hresult: 0x80040E4D Description: «Login failed for user ‘UserName’.».

    -1073573396 Failed to acquire connection «ServerName.DatabaseName.UserName». Connection may not be configured correctly or you may not have the right permissions on this connection.

    This is the code:
    Imports System.Data.SqlClient
    Imports Microsoft.SqlServer.Dts.Runtime

          Dim pkgLocation As String
            Dim pkg As New Package
            Dim app As New Application
            Dim pkgResults As DTSExecResult

            pkgLocation = Package

            Try
                If Storage = «Server» Then
                    If Trusted_Connection Then
                        pkg = app.LoadFromSqlServer(pkgLocation, DTS_Server, Nothing, Nothing, Nothing)
                    Else
                        pkg = app.LoadFromSqlServer(pkgLocation, DTS_Server, DTS_UserId, DTS_Password, Nothing)
                    End If
                Else
                    pkg = app.LoadPackage(pkgLocation, Nothing)
                End If
            Catch ex As Exception
                lblMsg.Text = «<b>Package load did not succeed, error:</b> » & ex.Message
                pkg = Nothing
                app = Nothing
                Exit Sub
            End Try

            Try
                pkgResults = pkg.Execute()
            Catch ex As Exception
                lblMsg.Text = «<b>Package execution did not succeed, error:</b> » & ex.Message
            End Try


    Kenny_I

    • Edited by

      Monday, June 6, 2011 1:44 PM

Answers

  • I set PackagePassword in SSIS project of Visual Studio. This solution did not work.


    Kenny_I

    I don’t meant in the SSIS Proejct,

    I meant in your .net code, add this line:

    app.PackagePassword=»yourpassword»

    right before the LoadPackage.


    http://www.rad.pasfu.com

    • Marked as answer by
      Kenny_I
      Wednesday, June 8, 2011 2:09 PM

  

Alexey87

29.01.10 — 11:32

поменял пароль для SA в Managment Studio, а в консоли серверов пароль не меняется пишет

Ошибка при выполнении операции с информационной базой

Ошибка СУБД:

Microsoft OLE DB Provider for SQL Server: Login failed for user ‘sa’.

HRESULT=80040E4D, SQLSrvr: Error state=1, Severity=E, native=18456, line=1

по причине:

Ошибка СУБД:

Microsoft OLE DB Provider for SQL Server: Login failed for user ‘sa’.

HRESULT=80040E4D, SQLSrvr: Error state=1, Severity=E, native=18456, line=1

  

IronDemon

1 — 29.01.10 — 11:37

Удали и добавь ИБ

  

IronDemon

2 — 29.01.10 — 11:38

1С пытается под старым паролем достучаться.

  

Alexey87

3 — 29.01.10 — 11:41

щас попробую

  

IronDemon

4 — 29.01.10 — 11:42

Только логи «потеряется»   :(

  

Alexey87

5 — 29.01.10 — 11:43

базу удалять в консоли серверов или в Managment Studio?

  

МаленькийВопросик

6 — 29.01.10 — 11:43

(5) ого!

  

Дикообразко

7 — 29.01.10 — 11:44

да format c: делай сразу

  

чувак

8 — 29.01.10 — 11:45

(5) Отчаянный однако :)

  

МаленькийВопросик

9 — 29.01.10 — 11:46

1.в sql смотришь какой юзер зацеплен на твою базу — можно поменять пароль этого юзера в настройках

2.в консоле серверов 1с — свойства базы — там юзер с паролем должны быть такие же для базы в sql

3.Есть еще  такая вещь — типа срок действия пароля для логина истек — в sql сервере галка есть — типа пароль не ограничен.

  

МаленькийВопросик

10 — 29.01.10 — 11:47

+(9) только чтобы зайти в свойства базы из консоли 1с — надо знать логин/пароль админа самой базы

  

Alexey87

11 — 29.01.10 — 11:49

1.в sql смотришь какой юзер зацеплен на твою базу — можно поменять пароль этого юзера в настройках

2.в консоле серверов 1с — свойства базы — там юзер с паролем должны быть такие же для базы в sql

говорю же так и делаю, когда в консоли в свойствах базы меняешь пароль выдает эту ошибку

  

Secret

12 — 29.01.10 — 11:49

(0) вместо кнопки [OK] ипользовать [Apply]

  

Alexey87

13 — 29.01.10 — 11:50

галка стоит эта, я же в Managment Studio под sa захожу

  

Alexey87

14 — 29.01.10 — 11:51

вместо кнопки [OK] ипользовать [Apply] — да делал уже

  

МаленькийВопросик

15 — 29.01.10 — 11:52

(11) значит что-то не так делаешь…

  

Alexey87

16 — 29.01.10 — 11:52

создал в Managment Studio sa1 с такими же правами, когда в косноли в свойтсвах базы пишу для sa1 ошибка вываливается для пользователя sa

  

Дикообразко

17 — 29.01.10 — 11:53

а можно вообще win-авторизацией сделать

  

МаленькийВопросик

18 — 29.01.10 — 11:55

какие права у sa?

  

Alexey87

19 — 29.01.10 — 11:56

(18)все

  

Megas

20 — 29.01.10 — 12:01

Блин! Тебе что сказали то ? =)

1) Открывай 1cv8 Servers (серверы 1с предприятия)
2) Удаляй от туда базу (только когда она спроси чё делать с SQL базой скажи что нечего делать не надо .. а на до оставить как есть!!! (Говорить надо в слух 3 раза!))
3) Вновь добавь базу с новым паролем для SA

  

Alexey87

21 — 29.01.10 — 12:07

щас копия снимется, сделаю

  

Alexey87

22 — 29.01.10 — 12:08

(20)Получается каждый раз при смене пароля для sa в Managment Studio я должен передобавлять таким образом базу?

  

IronDemon

23 — 29.01.10 — 12:16

(22) Да

  

Alexey87

24 — 29.01.10 — 12:29

Заработало все, спасибо


Обновлено 2023 января: перестаньте получать сообщения об ошибках и замедлите работу вашей системы с помощью нашего инструмента оптимизации. Получить сейчас в эту ссылку

  1. Скачайте и установите инструмент для ремонта здесь.
  2. Пусть он просканирует ваш компьютер.
  3. Затем инструмент почини свой компьютер.

При попытке использовать имя источника данных ODBC (DSN) для открытия соединения объектов данных ActiveX (ADO) с базой данных SQL Server со страницы Active Server Pages (ASP) вы можете получить следующее сообщение об ошибке:

Поставщик Microsoft OLE DB для драйверов ODBC (0x80040E4D)
[Microsoft] [Драйвер ODBC SQL Server] [SQL Server] Ошибка входа для пользователя ‘(null)’. Причина: не связано с доверенным подключением к SQL Server.

Каковы причины этой ошибки?

1. Вы подключились к неверному серверу MSSQL.

2 Имя пользователя и пароль базы данных могут быть недействительными.

Обновление за январь 2023 года:

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

  • Шаг 1: Скачать PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista — Microsoft Gold Certified).
  • Шаг 2: Нажмите «Начать сканирование”, Чтобы найти проблемы реестра Windows, которые могут вызывать проблемы с ПК.
  • Шаг 3: Нажмите «Починить все», Чтобы исправить все проблемы.

скачать

Проверка источников данных ODBC

Необходимо проверить источники данных ODBC, используемые WhatsUp Gold для доступа к базе данных, а затем перенести изменения в утилиту конфигурации базы данных WhatsUp Gold. Для этого необходимо выполнить следующие шаги:

ODBC соединение

  1. В меню «Пуск» Windows выберите: Для 32-разрядной операционной системы Windows: Панель управления> Администрирование> Источники данных, затем вкладка Системный DSN — или — для 64-разрядной операционной системы Windows: выберите «Выполнить» и введите (без кавычки) «c: Windows SysWOW64 odbcad32.exe»; затем выберите вкладку Системный DSN в диалоговом окне Администратор источника данных ODBC.
  2. Выберите DSN «WhatsUp», затем нажмите кнопку «Настроить», и появится мастер настройки.
  3. Убедитесь, что назначено имя «WhatsUp» (или «NetFlow», если вы проверяете NetFlow DSN) и что поле «Сервер» назначено правильно, т.е. >.
  4. Во втором диалоговом окне убедитесь, что опция «С Проверка подлинности SQL Server с идентификатором для входа и паролем, введенным пользователем ». Введите имя пользователя SQL в поле Логин.
  5. В поле «Пароль» введите пароль пользователя SQL (по умолчанию для WUG будет «пользователь» и пароль для «WhatsUp_Gold»), затем нажмите «Далее».
  6. В третьем диалоговом окне убедитесь, что выбран параметр «Изменить базу данных по умолчанию» и что база данных WhatsUp (или NetFlow, если она настроена для NetFlow) отображается в раскрывающемся меню, затем нажмите «Далее».
  7. Продолжайте нажимать «Далее», пока не дойдете до последнего диалогового окна, затем нажмите «Готово».
  8. Откроется диалоговое окно ODBC установки Microsoft SQL Server. Вы можете нажать кнопку «Проверить источник данных» или «ОК», чтобы проверить конфигурацию.
  9. Повторите шаги с b по f для DSN «NetFlow» и «iDroneService».

Проверьте, есть ли у учетной записи UISR анонимный доступ.

  1. Войдите в базу знаний Сервера приложений как пользователь с правами администратора.
  2. Щелкните правой кнопкой мыши значок «Мой компьютер» и выберите «Управление» в меню.
  3. В окне «Управление компьютером» разверните «Службы и приложения»> «Диспетчер информационных служб Интернета» (IIS)> «Сайты».
  4. Щелкните правой кнопкой мыши на ClientPortal и выберите «Свойства» в меню.
  5. На вкладке «Безопасность каталога» в разделе «Проверка подлинности и контроль доступа» выберите «Изменить».
  6. Убедитесь, что опция «Включить анонимный доступ» включена для имени пользователя UISR.
  7. Нажмите кнопку ОК, чтобы сохранить все изменения.
  8. Нажмите кнопку ОК, чтобы закрыть свойства ClientPortal.
  9. Повторите шаги 4-8 для портала клиентов.

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

https://community.oracle.com/thread/89045

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

ed_moyes

CCNA, веб-разработчик, ПК для устранения неполадок

Я компьютерный энтузиаст и практикующий ИТ-специалист. У меня за плечами многолетний опыт работы в области компьютерного программирования, устранения неисправностей и ремонта оборудования. Я специализируюсь на веб-разработке и дизайне баз данных. У меня также есть сертификат CCNA для проектирования сетей и устранения неполадок.

Сообщение Просмотров: 159

Modified on: Tue, 7 Apr, 2020 at 4:09 PM

Error Message:

Microsoft OLE DB Provider for SQL Server error ‘80040e4d’ 

Login failed for user ‘databaseuser’. 

/test.asp, line 6

Cause:

1. You have connected to a wrong MSSQL server

2. The database username and password might be invalid

Solutions:

1. Make sure that the database connection is well defined with the correct MSSQL host,

    port (if required, else optional), Database username and password


Additional Information:

1. If you are Windows 2003 hosting client, you may double check on your database information by :

    a. Login into HELM control panel

    b. Go to «Domains» >> select the domain name >> «Database Manager»

    c. Click on the database name from the list

    d. Refer «Connection Information» for MSSQL Server Host, database user is listed under the «Database Users» section.

    e.You may manage the database user by click on the database user name or click on Add New to setup a new

       database user

2. If you are Windows 2000 hosting client, please contact our System Engineer for further information as domain

    hosted on Windows 2000 server has been migrated to Windows 2003 server.

I get the following error when trying to schedule a job on SQL Server. When using the elipsis button to find the package:

An OLE DB error 0x80040E4D (Login failed for user 'TLsa_sql'.) occured while enumerating packages. A SQL statement as issued and failed.

If I use windows authentication I can use the list as normal. However I can’t run the package under the server agent logon as the package requires access to a saved session for a 3rd party program (WinSCP). So I created the system admin account above and gave it all the permissions I thought were reasoanble including the SQL Server Agent permissions on MSDB. The package runs fine from Visual Studio using this login and this login can connect to the DB and to the Integration Services storage.

asked Jul 10, 2012 at 16:22

morpheusdreams's user avatar

1

Scheduled jobs on MSSQL always run as the user used to start the SQL Server Agent. Set up a service account that has appropriate rights to the server system then use that service account to start the SQL Server Agent service.

answered Jul 10, 2012 at 16:51

Petrodon's user avatar

1

  • Ошибка субд interface 0c733a7c 2a1c 11ce ade5 00aa0044773d with hresult 0x00040eda
  • Ошибка субд index key does not match expected index column
  • Ошибка субд hresult 80004005
  • Ошибка субд error variable not found in subplan target lists 1с
  • Ошибка субд database не пригоден для использования postgresql windows