Sql server ошибка 0x80004005

The SQL Server error code 0x80004005 login timeout expired is a common error that occurs when trying to connect to a SQL Server instance. This error is usually caused by a problem with the connection settings or a problem with the SQL Server instance itself. There are several reasons why this error may occur.

1. Incorrect SQL Server connection string

One of the most common causes of login issues is an incorrect connection string. This can happen when the server name, port number, or login credentials are incorrect. To resolve this issue, double-check your connection string and make sure that it is correct.

For example, in this tutorial on how to connect to SQL Server using Python, a SQL Server connection string looks like this:

import pyodbc

connection = pyodbc.connect('Driver={SQL Server};'
                            'Server=localhost;'
                            'Database=Expert-Only;'
                            'Trusted_Connection=yes;')

Check the connection string to avoid SQL Server error code 0x80004005 login timeout expired

Check the connection string to avoid SQL Server error code 0x80004005 login timeout expired

Whereas with SSIS connections, a connection string looks like this. Exemple taken from the ConnectionString property of a Native OLE DB 11.0 conneciton to SQL Server.

Data Source=localhost;Initial Catalog=Expert-Only;Provider=SQLNCLI11.1;Integrated Security=SSPI;Application Name=SSIS-Package1-{49247E1C-7749-4A4C-B9BC-8A83F7A1190F}localhost.Expert-Only;Auto Translate=False;

2. SQL Server error login timeout instance issue

Another common cause of the SQL Server error login timeout expired is a problem with the SQL Server instance. I.e., on server side. This can be caused by a number of things such as the SQL Server service not running, the server being down for maintenance, or a problem with the network connection.

In this case, you should check the status of the SQL Server service, check the server’s event logs, and check the network connection.

3. Client side settings not properly set

A third cause of this error is a problem with the client-side settings. This can be caused by a problem with the client-side network settings or a problem with the client-side firewall. To resolve this issue, check the client-side network settings and make sure that they are configured correctly, and check the client-side firewall to make sure that it is not blocking the connection.

Conclusion on the SQL Server error login timeout

In conclusion, the SQL Server error code 0x80004005 login timeout expired is a common error that can be caused by several different issues. By checking the connection settings, the SQL Server instance, and the client-side settings, you can often resolve this error and restore the connection to the SQL Server instance.

More tutorials on SQL Server and T-SQL

  • SQL Server data types with code examples
  • Manage strings with more than 8000 characters
  • Store a SQL Server column in a variable
  • Create a SQL Server database with a script

To go further and use programming to manage data, you can use Python and T-SQL to manage SQL Server tables and data.

  • Remove From My Forums
  • Question

  • Hi,

    I have received the following error with when executing an SSIS package with a SQL Server database as a data source where I have read only access; —

    Error: 0xC0202009 at my_SSIS_component, my_database: SSIS Error Code

    DTS_E_OLEDBERROR.  An OLE DB error has occurred.

    Error code: 0x80004005.
    An OLE DB record is available.  Source: «Microsoft SQL Server Native Client 10.0» 

    Hresult: 0x80004005  Description: «Protocol error in TDS stream».

    An OLE DB record is available.  Source: «Microsoft SQL Server Native Client 10.0»

    Hresult: 0x80004005  Description: «Communication link failure».
    An OLE DB record is available.  Source: «Microsoft SQL Server Native Client 10.0»

    Hresult: 0x80004005  Description: «TCP Provider: An existing connection was forcibly closed by the remote host.
    «.
    An OLE DB record is available.  Source: «Microsoft SQL Server Native Client 10.0»  Hresult: 0x80004005  Description: «Communication link failure».
    An OLE DB record is available.  Source: «Microsoft SQL Server Native Client 10.0»  Hresult: 0x80004005  Description: «TCP Provider: The semaphore timeout period has expired.
    «.
    Error: 0xC0047038 at my_SSIS_component, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component «my_database» (1) returned error code 0xC0202009.  The component returned a failure code when the pipeline engine
    called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

    Service operating system; —

    Microsoft SQL Server 2008 (SP2) — 10.0.4064.0 (X64)   Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)
    Where I understand Windows NT 6.0 SP 2 is also known as Windows Server 2008 Service Pack 2.

    The error appears to occur intermittantly. Any guidance on how to arrive at a resolution would be greatly appreciated.

    Kind Regards,

    Kieran.


    If you have found any of my posts helpful then please vote them as helpful. Kieran Patrick Wood MCTS BI, PGD SoftDev (Open), MBCS, MCC http://uk.linkedin.com/in/kieranpatrickwood

    • Edited by

      Wednesday, October 5, 2011 2:04 PM

Answers

  • Hi,

    The solution was that the VPN between a Microsoft TMG firewall and a Cisco ASA (mixed vendor) under load kept collapsing the VPN tunnel.
    The fix was to replace Microsoft TMG with a cisco Firewall so the VPN is now cisco-to-cisco, resulting in a much more stable connection. Also a router was purchased with a higher capacity to cope with the additional traffic.

    I then performed an initial test where I sucessfully copied a 1/2 tb file using Windows file manager from the source server to the destination server over the new Virtual Private network connection. Where performing a file copy when the problem initially
    arose is where I convinced my collegues that the core issue was network related and not related to the configuration of my SSIS package.

    After receiving the results of the successful 1/2 tb file copy. I then executed my SSIS package over night over this new VPN connection, and the package reported successful execution within SQL Server Job Agent.

    Hopefully people out there will use this solution and hopefully have less pain than me resolving it.


    If you have found any of my posts helpful then please vote them as helpful. Kieran Patrick Wood MCTS BI, PGD SoftDev (Open), MBCS http://uk.linkedin.com/in/kieranpatrickwood

    • Edited by
      Kieran Patrick Wood
      Monday, March 12, 2012 8:36 PM
    • Marked as answer by
      Kieran Patrick Wood
      Monday, March 12, 2012 8:36 PM

RRS feed

  • Remove From My Forums
  • Question

  • What does error code 0x80004005 mean?

Answers

  • Karimullah,

    It’s unclear from your post if you’re even using SQL Server or Integration Services.  If you’re experiencing an issue with Norton, you should contact the vendor for assistance.  This forum is for questions and issues on SQL Server Integration Services.

All replies

  • What are you trying to do? 0x80004005 could mean a variety of things from a failed login to an Access database that is exclusively locked by another process. Please provide additional details about your scenario.

  • At random places in my packages, I randomly (not always) get this general netwrok error (I am including the first line just to show the line right above the error line):

    Information: 0x400490F4 at Data Flow Task — my task 1, Lookup — my lookup task 1 [234]: component «Lookup — my lookup task 1» (234) has cached 13312 rows.

    Error: 0xC0202009 at Data Flow Task — my task 1, Lookup — my lookup task 1 [234]: An OLE DB error has occurred. Error code: 0x80004005

    An OLE DB record is available. Source: «Microsoft OLE DB Provider for SQL Server» Hresult: 0x80004005 Description: «[DBNETLIB][ConnectionRead (WrapperRead()).]General network error. Check your network documentation.»

    Error: 0xC020824E at Data Flow Task — my task 1, Lookup — my lookup task 1 [234]: OLE DB error occurred while populating internal cache. Check SQLCommand and SqlCommandParam properties.

    Error: 0xC004701A at Data Flow Task — my task 1, DTS.Pipeline: component «Lookup — my lookup task 1» (234) failed the pre-execute phase and returned error code 0xC020824E.

    FYI — I am using June CTP.

    thanks,
    Nitesh

  • i am trying to update my norton internet security antivirus

    but it is unable to update

    when i search for that one command is there to resolve when in run the command it is saying that code

    the command is         regsvr32 %windir%system32msxml3.dll

    error is call to dllregisterserver is failed with erro code 0x80004005

  • Karimullah,

    It’s unclear from your post if you’re even using SQL Server or Integration Services.  If you’re experiencing an issue with Norton, you should contact the vendor for assistance.  This forum is for questions and issues on SQL Server Integration Services.

  • Hi David,

    I am having a problem updating a fresh install of Windows XP SP2.  I was successful in the fresh install and the subsequent update to XP3.  Unfortunately I seem to be having issues now.  The updates download  with no problem. Unfortunately none are installed.  It basically freezes at the attempt to install,  when the dialogue box indicated initializating the install.
    The information, screen shots and copy of windows update log are at this location for your perusal.
    http://www.dslreports.com/forum/r20768460-XP-Pro-MS-Update-Not-Initializing

    All to say that error code in the title is the error code I am seeing in the windows update log!!

    Any suggestion or help you can give would be appreciated.

    Thanks!

  • Hello,

    Have you solve your issue ? I’m facing the same problem with my Integration services job since i did the upgrade on Visual Studio 2010, on the lookup specially.

    I have been searching for a while, but can’t find a solution.

I have an SSIS package that is being executed by an SQL Job which runs twice a day. I recently updated the SSIS package by removing a where clause of a Select statement in it. Now the results have around 1800 rows compared tot he 650 of before. When I execute the new package on my local machine everything runs fine. But when I put it on the Prod server, it does not run and gives me Hresult: 0x80004005 Description: «Login timeout expired» error.

This error is usually thrown when remote access is not enabled but it is. The Job is running under my account, so the rights should not be a problem. Also, the package was running without problems before and I only changed a where clause that makes the Table larger by a thousand rows, so I should not have a login timeout error for that.

I know it is not the remaining space on the server because if I change the config file of the SSIS package and direct it the the production database, everything works fine.

Again, that problem is bugging me because when I put the old package with the old where clause, everything works fine.

Anyone has any idea what might be causing the problem?

Here is the Log entry:

Executed as user: Services. ...sion 9.00.3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 1:49:21 PM Error: 2011-08-04 13:50:12.28 Code: 0xC0202009 Source: Brd Load Connection manager "DataBase" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Login timeout expired". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "TCP Provider: A connection att... Process Exit Code 1. The step failed.

SQL SERVER - Setup Closed with Exit Code 0x80004005 error Recently I was trying to help one of my clients to install Service Pack 3 for SQL Server 2008 R2 instance. Nothing was coming up when we were hitting setup.exe. I looked into my own blog and found Installation Log Summary File Location – 2012 – 2008 R2. But there was no file getting generated. I looked around of MSDN and found: https://msdn.microsoft.com/en-us/library/ms143702.aspx. The reason was there was exit code 0x80004005.

It says that we should look into %TEMP% folder. So I went to Start > Run > %TEMP% and found sqlsetup.log file as below.

03/01/2016 10:04:11.954 Setup launched
03/01/2016 10:04:11.955 Attempting to determine media source
03/01/2016 10:04:11.956 Media source value not specified on command line argument.
03/01/2016 10:04:11.957 Setup is launched from media directly so default the value to the current folder.
03/01/2016 10:04:11.957 Media source: D:SOFTWARESP3
03/01/2016 10:04:11.958 Attempt to determine media layout based on file ‘ D:SOFTWARESP3mediainfo.xml’.
03/01/2016 10:04:11.981 Media layout is detected as: Core
03/01/2016 10:04:11.982 Not a slip stream media, so continuing to run setup.exe from media.
03/01/2016 10:04:11.983 /? or /HELP or /ACTION=HELP specified: false
03/01/2016 10:04:11.984 Help display: false
03/01/2016 10:04:11.985 Checking to see if we need to install .Net version 3.5
03/01/2016 10:04:11.985 Checking to see if we need to install MSI version 4.5
03/01/2016 10:04:11.986 RedistMSI::GetExpectedBuildRevision – Setup expects MSI 4.5.6001.22159 at the minimum
03/01/2016 10:04:11.987 Attempting to get Windows Installer version
03/01/2016 10:04:11.988 Windows Installer version detected: 5.0.7601.18493
03/01/2016 10:04:11.990 RedistMSI::IsVistaRTM – Not Vista RTM build
03/01/2016 10:04:11.991 Required version of Windows Installer is already installed
03/01/2016 10:04:11.992 .Net version 3.5 is already installed.
03/01/2016 10:04:11.992 Windows Installer version 4.5 is already installed.
03/01/2016 10:04:11.993 Patch related actions cannot be run from the local setup.exe, so continuing to run setup.exe from media.
03/01/2016 10:04:11.993 Attempt to initialize SQL setup code group
03/01/2016 10:04:11.994 Attempting to determine security.config file path
03/01/2016 10:04:11.995 Checking to see if policy file exists
03/01/2016 10:04:11.996 .Net security policy file does exist
03/01/2016 10:04:11.997 Attempting to load .Net security policy file
03/01/2016 10:04:12.000 Error: Cannot load .Net security policy file
03/01/2016 10:04:12.001 Error: InitializeSqlSetupCodeGroupCore(64bit) failed
03/01/2016 10:04:12.002 Error: InitializeSqlSetupCodeGroup failed: 0x80004005
03/01/2016 10:04:12.002 Setup closed with exit code: 0x80004005
======================================================================

All I can see is that there is something wrong with .NET security. I asked my .NET expert friend to know if there is any tool to reset the permission? He told CASPOL.EXE can be used to reset the policies.

Caspol.exe (Code Access Security Policy Tool)

So, we went into following directory “C:WINDOWSMicrosoft.NETFramework64v2.0.50727” and ran this command: –  caspol.exe -machine -reset

C:WINDOWSMicrosoft.NETFramework64v2.0.50727>caspol.exe -machine -reset

If it would have been a 32-bit machine, we would have run the same command under “C:WINDOWSMicrosoft.NETFrameworkv2.0.50727” folder.

After doing above, the setup was able to start and finish as well.

Reference: Pinal Dave (https://blog.sqlauthority.com)

Related Posts

Понравилась статья? Поделить с друзьями:
  • Sql server код ошибки 3417
  • Sql server native client ошибка выделения памяти
  • Sql server management studio ошибка при установке
  • Sql server management studio журнал ошибок
  • Sql server agent ошибка 1067