久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

SQL71501 - 如何擺脫這個錯誤?

SQL71501 - How to get rid of this error?(SQL71501 - 如何擺脫這個錯誤?)
本文介紹了SQL71501 - 如何擺脫這個錯誤?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我們在項目中使用了兩個模式 (dbo + kal).

We're using two schemas in our project (dbo + kal).

當我們嘗試使用以下 SQL 語句創(chuàng)建視圖時,Visual Studio 在錯誤列表中顯示為錯誤.

When we are trying to create a view with the following SQL statement, Visual Studio shows as an error in the error list.

CREATE VIEW [dbo].[RechenketteFuerAbkommenOderLieferantenView]
AS
    SELECT
        r.Id as RechenkettenId,
        r.AbkommenId,
        r.LieferantId,
        rTerm.GueltigVon,
        rTerm.GueltigBis,
        rs.Bezeichnung,
        rs.As400Name
    FROM
        [kal].[Rechenkette] r
    JOIN
        [kal].[RechenketteTerm] rTerm ON rTerm.RechenketteId = r.Id
    JOIN
        [kal].[Basisrechenkette] br ON rTerm.BasisrechenketteId = br.Id
    JOIN
        [kal].[Rechenkettenschema] rs ON rs.Id = br.Id
    WHERE 
        r.RechenkettenTyp = 0

錯誤信息如下所示:

SQL71501:計算列:[dbo].[RechenketteFuerAbkommenOderLieferantenView].[AbkommenId] 包含對對象的未解析引用.對象不存在或引用不明確,因為它可能引用以下任何對象:
[kal].[Basisrechenkette].[r]::[AbkommenId], [kal].[Rechenkette].[AbkommenId], [kal].[Rechenkette].[r]::[AbkommenId], [kal].[Rechenkettensschema].[r]::[AbkommenId] 或 [kal].[RechenketteTerm].[r]::[AbkommenId].

SQL71501: Computed Column: [dbo].[RechenketteFuerAbkommenOderLieferantenView].[AbkommenId] contains an unresolved reference to an object. Either the object does not exist or the reference is ambiguous because it could refer to any of the following objects:
[kal].[Basisrechenkette].[r]::[AbkommenId], [kal].[Rechenkette].[AbkommenId], [kal].[Rechenkette].[r]::[AbkommenId], [kal].[Rechenkettenschema].[r]::[AbkommenId] or [kal].[RechenketteTerm].[r]::[AbkommenId].

發(fā)布視圖和工作就好了,但是在構(gòu)建我們的項目時一直看到錯誤消息很煩人,所有嚴重的錯誤都在那些 sql 錯誤的混亂中丟失了.

Publishing the view and working is just fine, but its quite annoying to see the error message all the time when building our project having all the serious errors get lost in the shuffle of those sql errors.

您知道可能是什么問題嗎?

Do you have any idea, what the problem might be?

推薦答案

我剛剛找到了解決方案.盡管我無法閱讀您的(似乎是德語)以了解您是否指的是系統(tǒng)視圖,但如果是,則必須提供對 master 的數(shù)據(jù)庫引用.否則,添加任何其他必需的數(shù)據(jù)庫引用應(yīng)該可以解決問題.

I just found the solution. Although I can't read your (what appears to be German) enough to know if you're referring to system views, if so, a database reference to master must be provided. Otherwise, adding any other required database references should solve the problem.

此處針對系統(tǒng)視圖進行了描述:解析對對象信息架構(gòu)表的引用

This is described here for system views: Resolve reference to object information schema tables

和其他數(shù)據(jù)庫參考.

此處提供了其他信息:解決 SQL Server SSDT 項目中的歧義引用

這篇關(guān)于SQL71501 - 如何擺脫這個錯誤?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應(yīng)該使用什么 SQL Server 數(shù)據(jù)類型來存儲字節(jié) [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm Does not return all data(Typeorm 不返回所有數(shù)據(jù))
Typeorm .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
How to convert #39;2016-07-01 01:12:22 PM#39; to #39;2016-07-01 13:12:22#39; hour format?(如何將“2016-07-01 01:12:22 PM轉(zhuǎn)換為“2016-07-01 13:12:22小時格式?)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應(yīng)該返回“1?什么時候不能投射為日期?)
主站蜘蛛池模板: 69av在线视频| 久久久不卡网国产精品一区 | av影音在线 | 日韩av免费在线观看 | 国产三级在线观看播放 | 久久久久久中文字幕 | 国产在线观看不卡一区二区三区 | 久久久久久国产精品久久 | 天天色天天色 | 成人精品高清 | 一区二区中文 | 九九热精品视频 | 久久久久黄色 | 成人黄色av网址 | 蜜桃av一区二区三区 | 久久久国产精品 | 中文字幕一区在线观看视频 | 成人国产精品久久 | 99久热 | 欧美日韩在线一区 | 精品熟人一区二区三区四区 | 久久久久久久国产精品视频 | 99精品视频在线观看免费播放 | av电影一区二区 | 中文天堂网 | 狠狠操电影 | 国产免费一区二区 | 欧美一区二区三区视频 | 玖玖视频国产 | 国产在线观看 | 91美女在线观看 | 超碰欧美 | www久| 美女视频黄的 | 日韩中文字幕av | 99久久精品免费看国产四区 | 91精品在线看 | 欧美黄 片免费观看 | 成人免费视频网站在线看 | 婷婷久久五月 | 99精品国产一区二区三区 |