-
Notifications
You must be signed in to change notification settings - Fork 2
Views and View like Functions (M2)
Steven Rollo edited this page Jan 5, 2018
·
4 revisions
-
ClassDB.getUserActivitySummary(UserName)
- Proposed new function for getting an activity summary for a single supplied user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.User
- Columns:
-
DDLCount
,LastDDLObject
,LastDDLActivityAt
,ConnectionCount
,LastConnectionAt
fromClassDB.User
-
-
Public.getMyActivitySummary()
- Proposed new name for
Public.MyActivity()
. QueriesClassDB.getUserActivitySummary
for the session user only - The new names leave room for functions / views that display the entire DDL and connection activity logs for each user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
ClassDB.getUserActivitySummary(session_user)
- Columns: All from
ClassDB.getUserActivitySummary(session_user)
- Proposed new name for
-
ClassDB.getUserDDLActivity(UserName)
- Returns all DDL log entries for the specified user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.DDLActivity
,ClassDB.User
(Maybe?) - Columns:
-
StatementStartedAt
:StatementStarted
fromClassDB.DDLActivity
-
DDLOperation
fromClassDB.DDLActivity
-
DDLObject
fromClassDB.DDLActivity
-
-
Public.getMyDDLActivity()
- Returns all DDL log entries for the current user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
ClassDB.getUserDDLActivity(session_user)
- Columns: All from
ClassDB.getUserDDLActivity(session_user)
-
ClassDB.getUserConnectionActivity(UserName)
- Returns all connection log entries for the specified user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.ConnectionActivity
,ClassDB.User
(Maybe?) - Columns:
-
AcceptedAt
fromClassDB.ConnectionActivity
-
-
Public.getMyConnectionActivity()
- Returns all connection log entries for the current user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
ClassDB.getUserConnectionActivity(session_user)
- Columns: All from
ClassDB.getUserConnectionActivity(session_user)
-
ClassDB.getUserActivity(UserName)
- Returns all DDL and connection log entries for the specified user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.DDLActivity
,ClassDB.ConnectionActivity
,ClassDB.User
(Maybe?) - Columns:
-
ActivityAt
:StatementStarted
fromClassDB.DDLActivity
unionAcceptedAt
fromClassDB.ConnectionActivity
-
ActivityType
:'DDL'
or'Connection'
-
DDLOperation
fromClassDB.DDLActivity
orNULL
-
DDLObject
fromClassDB.DDLActivity
orNULL
-
-
Public.getMyActivity()
- Returns all DLL and connection log entries for the current user
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
ClassDB.getUserActivity(session_user)
- Columns: All from
ClassDB.getUserActivity(session_user)
-
Public.MyActivitySummary
- Proposed new name for
Public.MyActivity
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
Public.getMyActivitySummary
- Columns: All from
Public.getMyActivitySummary()
- Proposed new name for
-
Public.MyDDLActivity
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
Public.getMyDDLActivity()
- Columns: All from
Public.getMyDDLActivity()
- Owned by:
-
Public.MyConnectionActivity
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
Public.getMyConnectionActivity()
- Columns: All from
Public.getMyConnectionActivity()
- Owned by:
-
Public.MyActivity
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
,ClassDB_Student
- Queries:
Public.getMyActivity()
- Columns: All from
Public.getMyActivity()
- Owned by:
-
ClassDB.StudentActivityAll
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.User
- Columns:
-
UserName
,LastDDLActivityAt
,LastDDLOperation
,LastDDLObject
,DDLCount
,LastConnectionAt
,ConnectionCount
fromClassDB.User
-
- Owned by:
-
ClassDB.StudentActivityAnon
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.StudentActivityAll
- Columns: All from
ClassDB.StudentActivityAll
exceptUserName
- Owned by:
-
ClassDB.StudentTable
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.User
,INFORMATION_SCHEMA.Tables
- Columns:
-
UserName
:Table_Schema
fromINFORMATION_SCHEMA.Tables
-
TableName
:Table_Name
fromINFORMATION_SCHEMA.Tables
-
TableType
:Table_Type
fromINFORMATION_SCHEMA.Tables
-
- Owned by:
-
ClassDB.StudentTableCount
- Owned by:
ClassDB
- Accessible to:
ClassDB_Instructor
- Queries:
ClassDB.User
,INFORMATION_SCHEMA.Tables
- Columns:
-
UserName
:Table_Schema
fromINFORMATION_SCHEMA.Tables
-
TableCount
:COUNT(*)
of result
-
- Owned by: