简体   繁体   中英

Invalid object name sql server stored procedure

I am getting this error while trying to modify the existing stored procedure. "Invalid object name [dbo].[BackupDB]"

I was able to create this stored procedure but when I click on modify option to modify this stored procedure system shows me the above error. You see the attached image.

Also i am getting same error when try to execute this command. It won't find BackupDB

EXEC BackupDB @backupLocation='C:\SQLBackups\', 
                              @databaseName=’wmas_subs’, @backupType='F'

http://i61.tinypic.com/6oj32s.png

If you drop and re-create a stored procedure it gets a new objectid - the list of stored procedures in SSMS is linked to the id it knows at the time the list was built. If you re-create it but don't refresh the stored procedures folder then any attempts to edit it will indicate the procedure is not found as the id has changed.

尝试刷新Management Studio上存储过程的文件夹

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM