sql中sp是什么意思 sql中的sp_helptext、sp_help、sp_depends是什么意思?
sql中的sp_helptext、sp_help、sp_depends是什么意思?sp_help報告有關(guān)數(shù)據(jù)庫對象(sysobjects表中列出的任何對象)、用戶定義數(shù)據(jù)類型或Microsoft?SQ
sql中的sp_helptext、sp_help、sp_depends是什么意思?
sp_help報告有關(guān)數(shù)據(jù)庫對象(sysobjects表中列出的任何對象)、用戶定義數(shù)據(jù)類型或Microsoft?SQLServer?所提供的數(shù)據(jù)類型的信息。sp_helptext顯示規(guī)則、默認(rèn)值、未加密的存儲過程、用戶定義函數(shù)、觸發(fā)器或視圖的文本。sp_depends顯示有關(guān)數(shù)據(jù)庫對象相關(guān)性的信息(例如,依賴表或視圖的視圖和過程,以及視圖或過程所依賴的表和視圖)。不報告對當(dāng)前數(shù)據(jù)庫以外對象的引用。
sql中的sp_helptext、sp_help、sp_depends是什么意思?
sp_help:用于顯示參數(shù)清單和其數(shù)據(jù)類型。 sp_depends:用于顯示存儲過程依據(jù)的對象或者依據(jù)存儲過程的對象。 sp_helptext:用于顯示存儲過程的定義文本。
DATABASE創(chuàng)建studb數(shù)據(jù)庫,然后通過系統(tǒng)存儲過程sp_helpdb查?
if exists (select 1 from sysobject where name = "sp_helpdb") is not null --判斷是否存在同名的存儲過程,如果有就刪除drop procedure sp_helpdb go create procedure sp_helpdb --創(chuàng)建名為sp_helpdb存儲過程as create database studb --在存儲過程里創(chuàng)建數(shù)據(jù)庫on primary( --創(chuàng)建主文件 name = studb_mdf, filename = "存儲路徑studba_mdf,mdf", size = 3mb, maxsize = 100mb, filegrowth = 1mb)on log( --創(chuàng)建日志文件 name = studb_ldf, filename = "存儲路徑studba_ldf,ldf", size = 3mb, maxsize = 200mb, filegrowth = 1mb)go
SQL中的sp_helpindex,sp_bindrule是什么命令?
sp_helpindex是系統(tǒng)存儲過程,用來獲取數(shù)據(jù)庫中表對應(yīng)的索引名稱如:use dbname go exec sp_helpindex tablename gosp_bindrule也是系統(tǒng)存儲過程,作用是將規(guī)則綁定到列或別名數(shù)據(jù)類型這個很少用。