Skip to main content

GET THE DETAIL OF SQL DATABASE

SQL DATABASE DETAIL QUERY

  1. Aggregate Function: Get the name of all Aggregate functions.

    Select name,type from sysobjects where type='AF'
     
  2. Foreign Key: Get the name of all Foreign Keys.

    Select name,type from sysobjects where type='F'
     
  3. Function: Get the name of all scalar functions.

    Select name,type from sysobjects where type='FN'
     
  4. Stored Procedure: Get the name of all Stored Procedures. 

    Select name,type from sysobjects where type='P'
     
  5. Primary Key: Get the name of all Primary Keys.

    Select name,type from sysobjects where type='PK'
     
  6. Table-Valued-Function: Get the name of all Aggregate functions.

    Select name,type from sysobjects where type='TF'
     
  7. Trigger: Get the name of all DML triggers.

    Select name,type from sysobjects where type='TR'
     
  8. Tables: Get the name of all Tables (user-defined).

    Select name,type from sysobjects where type='U'
     
  9. View: Get the name of all Views.

    Select name,type from sysobjects where type='V'
The following are all the types of entities in the sysobjects view:
AF = Aggregate function (CLR)
C = CHECK constraint
D = DEFAULT (constraint or stand-alone)
F = FOREIGN KEY constraint
FN = SQL scalar function
FS = Assembly (CLR) scalar-function
FT = Assembly (CLR) table-valued function
IF = SQL inline table-valued function
IT = Internal table
P = SQL Stored Procedure
PC = Assembly (CLR) stored-procedure
PG = Plan guide
PK = PRIMARY KEY constraint
R = Rule (old-style, stand-alone)
RF = Replication-filter-procedure
S = System base table
SN = Synonym
SO = Sequence object
SQ = Service queue
TA = Assembly (CLR) DML trigger
TF = SQL table-valued-function
TR = SQL DML trigger 
TT = Table type
U = Table (user-defined)
UQ = UNIQUE constraint
V = View
X = Extended stored procedure

Comments

Popular posts from this blog

Create Bootable USB without any Software in Windows 10     Insert Your USB Drive on You r Computer Open cmd prompt ( Windows + R and type cmd )   run a cmd prompt as Administrator type diskpart  and  hit enter In the new diskpart type list disk its show list of disk in your system Most probably you will see disk type Disk 0 for Hard Disk Disk 1 for USB  Now type Select disk 1 and hit enter Type clean and hit enter to format Type create partition 1 and hit enter Type active and hit enter Type format fs=ntfs quick and hit enter Type exit and hit enter   Copying files from an ISO image on your PC USB Manually

Taste of Pie, Android 9 Community Beta for OnePlus 3/3T

Changelog   System Updated system to Android™ 9 Pie™ Brand new UI for Android Pie Updated Android security patch to 2019.4 Do Not Disturb mode New Do Not Disturb mode with adjustable settings New Gaming mode 3.0 Added text notification mode Added notification for 3rd party calls Phone Deep integration with Google Duo Camera Integrated Google Lens mode