SQL SERVER
Below I have listed some frequently used objects.USEFUL TABLES AND VIEWS
- master..sysperfinfo
- <db>..sysindexes
- master..sysprocesses
- syslogins
- sys.messages
- sys.dm_exec_requests
- sys.dm_exec_sql_text
- sys.dm_exec_connections
- sys.dm_db_index_physical_stats
- sys.dm_db_missing_index_groups
- sys.dm_db_missing_index_details
- sys.dm_db_missing_index_group_stats
- sysindexes – Using this you can count the rows in a table faster. make use of below query.
select rows from sysindexes where id= OBJECT_ID('tablename') and indid < 2
USEFUL STOREDPROCS
- sp_spaceused
- sp_helpdb
- sp_helpfile
- sp_change_users_login
- sp_changedbowner
- sp_readerrorlog
USEFUL FUNCTIONS
1. fn_virtualfilestats()USEFUL LINKS
1. Port numbers a DBA should know.2. SQL Server DBA Interview Questions.
No comments:
Post a Comment