Sunday 25 February 2018

Sql Queries for Database help

1. ///// Get store procedure using sql query

       sp_helptext DeleteEmployee



2. ///// Get used spaces in database

   exec sp_spaceused



3. ///// Get ldf and mdf information and path

   EXEC sp_helpdb @dbname= 'Test'



4. ///// Remove or shrink extra space from Database.

DBCC SHRINKDATABASE(Test, 10)



No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...