SQL
MS SQL and .net Development
Pages
(Move to ...)
Home
▼
Monday, December 29, 2014
Tables ordered by Size
›
Use below query to find the tables in a database based on Size SELECT O.Name AS [Table], SUM(A.Total_Pages) AS [Reserved Pages],...
Monday, December 15, 2014
Convert Seconds to HH:MM:SS
›
Use below function to convert Seconds to HH:MM:SS Create Function dbo.GetHHMMSS(@InputSecs BIGINT) RETURNS nVarChar(Max) Begin Declare...
Monday, December 8, 2014
RESTORE DATABASE is terminating abnormally
›
Sometime when you try to restore a backup over an existing database, the following error may appear: RESTORE DATABASE is terminating abno...
Monday, December 1, 2014
Query to get Last restored database in SQL Server
›
You can use below query to get the list of all database restored in SQL Server: SELECT [RS].[Destination_Database_Name] AS [Destination D...
Monday, November 24, 2014
compare current row with previous / next row in a table
›
There must be a numeric identity / Unique column for comparing current with next / previous Rows in a table. Lets say you want to compar...
‹
›
Home
View web version