SQL
MS SQL and .net Development
Pages
(Move to ...)
Home
▼
Monday, January 28, 2013
Get Start and End date of Fortnight
›
Sometime it is needed to get the start and end date of fortnight. Use below query to get the result: DECLARE @DateInput DATETIME SET @...
Monday, January 21, 2013
Slow Query Performance in SqlDataReader vs. Management Studio
›
Today I was working on a query for a web application, I noticed that the query which executes within a second in Management Studio, was tak...
Monday, January 14, 2013
Get First and last day of week
›
Use below function to get the First day of week CREATE FUNCTION Week1stDay (@DateInput DateTime) -- Add the parameters for the function...
Monday, January 7, 2013
ALTER Schema / Owner name
›
Query to change the schema / Owner of database objects like EXEC sys.sp_changeobjectowner <Object Name>, <New Owner Name> ...
Monday, December 31, 2012
Shrink the Unshrinkable SQL Transaction Log
›
There are many reason for not shrinking of Transaction log. Our production database backup was failing for last several weeks, so the backu...
1 comment:
‹
›
Home
View web version