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

SQL Server - 查詢系統對象

SQL Server - Querying sysobjects(SQL Server - 查詢系統對象)
本文介紹了SQL Server - 查詢系統對象的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我注意到,當我查詢 dbo.sysobjects 時,為了確定我的數據庫中的所有對象,它還會選取名稱以syncobj_"開頭的所有系統視圖.它們的 xtype 為V",除了檢查視圖名稱外,我似乎無法知道這些是系統視圖,而不是我自己的視圖.還有其他方法嗎?我想從我正在創建的查詢中排除這些.

I notice that when I query dbo.sysobjects, to determine all the objects in my database, it also picks up all system views whose name starts with 'syncobj_'. These have an xtype of 'V' and there doesn't appear to be any way I can know these are system views, and not my own, except by examining the name of the view. Is there some other way? I would like to exclude these from a query I'm in the process of creating.

推薦答案

參見 OBJECTPROPERTY:

IsMSShipped

IsMSShipped

任何模式范圍的對象

在安裝 SQL Server 期間創建的對象.1 = 真 0 = 假

Object created during installation of SQL Server. 1 = True 0 = False

像這樣使用它:

SELECT * from sysobjects where OBJECTPROPERTY(ID,N'IsMSShipped') = 0

雖然它的文檔有點偏離 - 它還可以幫助您排除by"添加的其他對象.SQL Server 稍后也 - 例如任何與復制相關的對象也被視為 IsMSShipped.

It's documentation is a bit off though - it also assists you with excluding other objects added "by" SQL Server at a later date also - e.g. any replication related objects are also considered to be IsMSShipped.

這篇關于SQL Server - 查詢系統對象的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個子標記轉換為具有多個分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個表創建視圖?)
Create calculated value based on calculated value inside previous row(根據前一行內的計算值創建計算值)
How do I stack the first two columns of a table into a single column, but also pair third column with the first column only?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對?) - IT屋-程序員軟件開發技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 夜夜操天天艹 | 日韩欧美三区 | 亚洲最大的成人网 | 91在线一区二区 | 国内成人免费视频 | 特一级毛片 | 欧美一区永久视频免费观看 | 欧美激情综合五月色丁香小说 | 日日操视频 | 国产在线精品一区二区 | 少妇一级淫片aaaaaaaaa | 免费视频一区二区三区在线观看 | 另类亚洲视频 | 久久国产日本 | 亚洲综合国产 | 久久精品1 | 18性欧美 | 国产在线观看不卡一区二区三区 | 美女黄视频网站 | 91精品国产综合久久久久久首页 | 日韩国产中文字幕 | 成人午夜视频在线观看 | 国产精品久久久久久久久久久久久久 | 亚洲视频在线观看 | 四虎在线观看 | 国产精久久久久久久 | 99热碰| 欧美精品乱码久久久久久按摩 | 国产高清视频一区 | 欧美日韩免费一区二区三区 | 欧美另类视频 | 99热这里有精品 | 国产一区二区三区视频 | 日本三级在线 | 久久这里只有精品首页 | 久久精品亚洲 | 三级黄色大片网站 | 国产精品久久久爽爽爽麻豆色哟哟 | 午夜精品久久久久久 | 国产高清视频在线观看 | 在线看片国产精品 |