DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
SITE SEARCH SQLUSA.com HEADLINES NEWS
SQL E/BOOKS   SQL 2014 PROGRAMMING   DOWNLOADS
SCRIPTS SQL 2005 SQL 2008 ARTICLES
SQL JOBS TWITTER FORMAT VIDEOS
How display all objects in a database?

Execute the following Microsoft SQL Server T-SQL script to list all object in the database:

USE AdventureWorks2008;

 

SELECT SchemaName=SCHEMA_NAME(schema_id),

       ObjectName = name,

       [Type]=type,

       TypeDesc=type_desc,

       ParentObject =OBJECT_NAME(parent_object_id)

FROM sys.objects

ORDER BY Type, SchemaName, ObjectName

GO

-- (631 row(s) affected)

/*

SchemaName        ObjectName        Type  TypeDesc    ParentObject

....

HumanResources    Department        U     USER_TABLE  NULL

HumanResources    Employee          U     USER_TABLE  NULL

HumanResources    EmpDeptmentHist   U     USER_TABLE  NULL

HumanResources    EmployeePayHist   U     USER_TABLE  NULL

HumanResources    JobCandidate      U     USER_TABLE  NULL

HumanResources    PayCalendar       U     USER_TABLE  NULL

HumanResources    Shift             U     USER_TABLE  NULL

.....*/

 

Exam Prep 70-461
Exam 70-461
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE