Wednesday, December 8, 2010

Script to list out all DMVs and DMFs of SQL Server


-- To check the diffrent kind of system objects
SELECT Distinct type_desc
FROM sys.system_objects

-- To get the list of DMVs or DMFs
SELECT name, type, type_desc,SCHEMA_NAME(schema_id) as SNAME
FROM sys.system_objects
WHERE name LIKE 'dm[_]%'
ORDER BY name


Monday, December 6, 2010

How to generate script using SSMS GUI?

You can generate script of GUI functionality by clicking below high-lighted option in the image.

It will give you all the below options.

Friday, December 3, 2010

Monday, November 15, 2010

SP to recycle SQL Server and Agent Error Log file

To limit the size of the SQL Server error log, the sp_cycle_errorlog system stored procedure can be issued to start a new error log. 

To recycle SQL Server Agent log you can execute sp_cycle_agent_errorlog system stored procedure.

Issues with Using Run As to Start SQL Server Management Studio with a Different Login

http://www.mssqltips.com/tip.asp?tip=2164

Friday, October 29, 2010

Friday, October 22, 2010

SQL Server Version and Code Name
















































SQL Server VersionCode Name
SQL Server 6.0SQL95
SQL Server 6.5Hydra
SQL Server 7.0Sphinx
SQL Server 7.0 OLAPPlato
SQL Server 2000 32-bitShiloh
SQL Server 2000 64-bitLiberty
SQL Server 2005Yukon
SQL Server 2008Katmai
SQL Server 2008 R2Kilimanjaro
SQL Server 2011Denali