Microsoft KB Archive/308789

= FIX: SQL DMO's SQLBackup Method Fails with Error Message 3206 =

Article ID: 308789

Article Last Modified on 10/16/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q308789



BUG #: 355170 (SHILOH_BUGS)



SYMPTOMS
A call to the SQLBackup method in SQL Distributed Management Objects (SQL-DMO) may return this error message:

0x80040c86

If you use SQL Profiler to trace the calls, and you then execute the captured syntax through Query Analyzer, these error messages occur:

Server: Msg 3206, Level 16, State 1, Line 1 No entry in sysdevices for backup device 'disk='c:\pubs.bak''. Update sysdevices and rerun statement.

Server: Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally.



CAUSE
The SQL-DMO object incorrectly places brackets [] around the backup_device parameter in the BACKUP command. SQL-DMO should only add the brackets when the device is a logical (named) device that uses an identifier, and not add the brackets when the device is a physical device. When SQL-DMO adds the brackets, the syntax of the command is incorrect.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack



WORKAROUND
To work around this problem either:
 * Create a backup job in Enterprise Manager.

-or-


 * Use another method to execute the backup step.



STATUS
Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000.

This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

Additional query words: brackets sql dmo dump

Keywords: kbbug kbfix KB308789

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.