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

SQL Server - 查詢(xún)系統(tǒng)對(duì)象

SQL Server - Querying sysobjects(SQL Server - 查詢(xún)系統(tǒng)對(duì)象)
本文介紹了SQL Server - 查詢(xún)系統(tǒng)對(duì)象的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我注意到,當(dāng)我查詢(xún) dbo.sysobjects 時(shí),為了確定我的數(shù)據(jù)庫(kù)中的所有對(duì)象,它還會(huì)選取名稱(chēng)以syncobj_"開(kāi)頭的所有系統(tǒng)視圖.它們的 xtype 為V",除了檢查視圖名稱(chēng)外,我似乎無(wú)法知道這些是系統(tǒng)視圖,而不是我自己的視圖.還有其他方法嗎?我想從我正在創(chuàng)建的查詢(xún)中排除這些.

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.

推薦答案

參見(jiàn) OBJECTPROPERTY:

IsMSShipped

IsMSShipped

任何模式范圍的對(duì)象

在安裝 SQL Server 期間創(chuàng)建的對(duì)象.1 = 真 0 = 假

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

像這樣使用它:

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

雖然它的文檔有點(diǎn)偏離 - 它還可以幫助您排除by"添加的其他對(duì)象.SQL Server 稍后也 - 例如任何與復(fù)制相關(guān)的對(duì)象也被視為 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.

這篇關(guān)于SQL Server - 查詢(xún)系統(tǒng)對(duì)象的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個(gè)子標(biāo)記轉(zhuǎn)換為具有多個(gè)分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個(gè)表創(chuàng)建視圖?)
Create calculated value based on calculated value inside previous row(根據(jù)前一行內(nèi)的計(jì)算值創(chuàng)建計(jì)算值)
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?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對(duì)?) - IT屋-程序員軟件開(kāi)發(fā)技
Recursive t-sql query(遞歸 t-sql 查詢(xún))
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱(chēng)轉(zhuǎn)換為日期/月份編號(hào)(問(wèn)題和答案的組合))
主站蜘蛛池模板: 亚洲欧美在线视频 | 精品久久一区二区三区 | 一区二区三区回区在观看免费视频 | 亚洲成人免费视频 | 色播久久久 | 黄色在线观看国产 | 国产视频中文字幕 | 99精品电影| 你懂的国产 | 91免费看片 | 久久久久久国产精品久久 | 精品一区在线 | 韩三级在线观看 | 国产日韩视频 | 国产探花在线精品一区二区 | 日本a网站 | 成人国产网站 | 天堂一区二区三区 | 久久久久国产一级毛片 | 9999国产精品欧美久久久久久 | 国产精品三级久久久久久电影 | 欧美xxxx性| 九九九久久国产免费 | 国产精品自产拍在线观看蜜 | 亚洲品质自拍视频网站 | 黄色一级电影免费观看 | 成人精品一区二区 | av电影一区二区 | 一区二区三区免费 | 日本精品一区二区三区在线观看视频 | 涩涩视频大全 | 欧美激情视频一区二区三区免费 | 久久国产精品无码网站 | 中国av在线免费观看 | 精品亚洲一区二区三区 | 欧美一区二区三区在线观看 | 黄色一级片在线播放 | 看片wwwwwwwwwww| 91精品久久久 | 久久久精彩视频 | 黄色片免费 |