This is a mirror of official site: http://jasper-net.blogspot.com/

Useful SQL System Stored Procedure

| Monday, September 19, 2011
1. Finding SQL Server Version:

Select @@version;

or

EXEC master..sp_MSgetversion

2. Finding SQL Databases names and size:

Use master;
EXEC sp_helpdb;

3. Finding the physical location of the SQL databases and logs:

SELECT name, physical_name AS current_file_location
FROM sys.master_files

4. Finding list of tables and views in SQL database:

Use master;
EXEC sp_tables;

5. Finding which user/s is/are currently logging to the SQL server:

EXEC sp_who;

6. Move to Advanced Configurations Mode:

USE master;
EXEC sp_configure 'show advanced option', '1';


7. Reviewing Advanced Configurations Mode options:”

RECONFIGURE;
EXEC sp_configure;


Read more: Yuval Sinay
QR: useful-sql-system-stored-procedure.aspx

Posted via email from Jasper-net

0 comments: