SQL Server Tweaks

by Manuel 12/21/2007 3:45:00 AM

Server’s free disk space:

xp_fixeddrives  


Determine logspace:
 

dbcc sqlperf (logspace)  


Tem
pDB size:

 sp_tempdbspace  


Current time and user information: 

select 
  
current_timestamp as Time
,
   user as Benutzer,

   system_user as System_Benutzer,

   current_user as Current_Benutzer
,
   session_user as Session_Benutzer
   


Monitoring SQL-Server: 

sp_who2 


Useful stored procedures: 

sp_helpdb -- Displays information about all databases on the server
sp_helpdb databasename -- Displays information about a particular database
sp_help objectname -- Displays information about a table
sp_spaceused -- Displays information about the space used in the current database
sp_tables -- Lists the tables in a database
sp_helptext name -- Displays the code used in a particular stored procedure
sp_dboption -- Sets or returns information about database options
    

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SQL-Server

Related posts

Comments

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  August 2010  >>
MoTuWeThFrSaSu
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

View posts in large calendar

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Sign in