Extended stored procedures in SQL Server

Source: Internet
Author: User


--List all OLE DB-provided programs installed on the server
Execute Master: Xp_enum_oledb_providers


--Get Hard disk file information
--Parameter Description: directory name, directory depth, whether to display files (less)
--execute Master. Xp_dirtree ' C: '
--execute Master. Xp_dirtree ' C: ', 1
--execute Master. Xp_dirtree ' C: ',

--Lists the list of SQL Server error logs and the last update time
Execute Master: Xp_enumerrorlogs


--List all Windows local groups on the server
Execute Master: Xp_enumgroups

--List The fixed drives on the server and the available space per drive
Execute Master: Xp_fixeddrives

--Get the computer name of the current SQL Server server
Execute Master: Xp_getnetname


--Get the version number of MS SQL
Execute Master: Sp_msgetversion

--List the specific contents of the current error log
EXEC [Master]. [dbo]. [Xp_readerrorlog]


---List the name of the drive
--free space in bytes
--To drive type: Floppy drive (1), HDD (2), CD-ROM (8)
EXEC [Master]. [dbo]. [Xp_availablemedia]

Extended stored procedures in SQL Server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.