VS 2010建立数据库项目接收SQL04151 [英] VS 2010 build database project receive SQL04151

查看:97
本文介绍了VS 2010建立数据库项目接收SQL04151的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Visual Studio 2010 Premium数据库项目.我必须说确实的确如此.我不知道的一件事是如何避免SQL04151警告

I just started working with the Visual Studio 2010 Premium database project. I must say it does indeed rock. One thing I can't figure out is how to avoid the SQL04151 warning

步骤:[dbo].[MyProc]有一个 未解决的对象引用 [MyDatabase].[dbo].[MyItem].

Procedure: [dbo].[MyProc] has an unresolved reference to object [MyDatabase].[dbo].[MyItem].

我在某处错过了一个简单的步骤吗?我在网上找到的所有内容都与tempdb有关.

Did I miss a simple step somewhere? All I can find online involves tempdb.

推荐答案

我需要将[MyDatabase].[dbo].[MyTable]替换为[$(DatabaseName)].[dbo].[MyTable].这清除了警告.

I need to substitute [MyDatabase].[dbo].[MyTable] with [$(DatabaseName)].[dbo].[MyTable]. This cleared up the warnings.

感谢您的帮助.

这篇关于VS 2010建立数据库项目接收SQL04151的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆