使用SQLServer 2008和Visual Studio 2010实现数据层应用程序

时间:2011-02-25 15:30:06

标签: database visual-studio-2010 sql-server-2008

我正在将现有数据库转换为数据层应用程序。 Visual Studio 2010提供了一个向导功能,可将现有数据库转换为数据层应用程序。在我的一些存储过程中,我使用msdb.dbo.sp_send_dbmail引发了以下错误:

[dbo].[MyProcedure](StoredProcedure) - Depends on object '[dbo].[sp_send_dbmail]' which does not exist in this database

因此,对于数据层应用程序,我们不允许使用内置存储过程或者是否遗漏了指令中的内容?

感谢。

1 个答案:

答案 0 :(得分:0)

听起来上下文错了。我不是肯定的,但您可以尝试在通话前添加数据库名称:[msdb]。[dbo]。[sp_send_dbmail]