some sql important queries
use testing
select * from sys.tables
select * from studentrecord
select * from sys.procedures
select * from sys.objects where type='U'
SELECT * FROM sys.all_objects where type in ('FN','AF','FS','FT','IF','TF')
--AF = Aggregate function (CLR)
--C = CHECK constraint
--D = DEFAULT (constraint or stand-alone)
--F = FOREIGN KEY constraint
--PK = PRIMARY KEY constraint
--P = SQL stored procedure
--PC = Assembly (CLR) stored procedure
--FN = SQL scalar-function
--FS = Assembly (CLR) scalar function
--FT = Assembly (CLR) table-valued function
--R = Rule (old-style, stand-alone)
--RF = Replication filter procedure
--SN = Synonym
--SQ = Service queue
--TA = Assembly (CLR) trigger
--TR = SQL trigger
--IF = SQL inlined table-valued function
--TF = SQL table-valued function
--U = Table (user-defined)
--UQ = UNIQUE constraint
--V = View
--X = Extended stored procedure
--IT = Internal table
SELECT * FROM sys.all_objects where type in ('FN')
select * from testing.sys.objects where type='fn'
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home