FIX: Error Dialog Box During SQL Server Database Backup (319246)



The information in this article applies to:

  • Microsoft Data Access Components 2.6 SP2
  • Microsoft Data Access Components 2.7
  • Microsoft SQL Server 7.0
  • Microsoft SQL Server 2000 Standard Edition

This article was previously published under Q319246

SYMPTOMS

When you back up a SQL Server database, a dialog box may state that there is no floppy disk in drive A, or that there is no hard disk in the removable disk drive (for example, a Zip drive). This dialog box appears on the SQL Server server, not on the computer that is running SQL Server Enterprise Manager and launching the backup.

CAUSE

When a linked server link is used to query a table on another SQL Server server, SQL Server uses the SQLOLEDB Provider. SQLOLEDB calls the operating system API function SetErrorMode() and sets the mode to SEM_NOOPENFILEERRORBOX. However, the provider does not restore the original error mode value (SEM_FAILCRITICALERRORS) later in the code. The failure occurs because SQL Server also uses the SetErrorMode() function, which has not been reset correctly by the provider.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next MDAC service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:
   Date         Time   Version        Size    File name
   -------------------------------------------------------
   19-FEB-2002  14:23  2000.80.585.0  495697  Sqloledb.dll
				

The new SQLOLEDB.DLL file should replace the existing SQLOLEDB.DLL file on the SQL Server computer.

IMPORTANT: To install this file stop all services and close all applications that use Sqloledb.dll. For example, SQL Server or IIS. Rename the existing Sqloledb.dll in the C:\Program Files\Common Files\System\Ole DB folder, and then copy the new dll to the same folder. Once the file has been copied into the folder, register the file using regsrv32. For exmaple, regsrv32 C:\Program Files\Common Files\System\Ole DB\sqloledb.dll.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

281345 FIX: Dialog Box Opens During Backup Process Prompting You To Insert Disk in Drive A


Modification Type:MinorLast Reviewed:10/11/2005
Keywords:kbHotfixServer kbQFE kbbug kbfix kbQFE KB319246