Thanks Terry.
I am using SQL2K. I am trying to back up a database using the following code:
Exec sp_addumpdevice 'DISK',' MySQLBackUp',
'C:\Program Files\Microsoft SQL Server\MSSQL$FABGUARDSQL\BACKUP\MySQLBackUp.bak'
there is no problem to create a device. The problem occured in the following:
Backup Database FGTestOne
To MySQLBackUp
with description = 'My What a nice backup!',
stats
SQL gave me this:"No entry in sysdevices for backup device 'MySQLBackUp'. Update sysdevices and rerun statement.".
But if I use EM to backup the database using the same device, there was not any problem. Don't really know why?