Category SQL Server

Droping a Database by Force

The Below Procedure will drop the Database by force though it is accessing by the End Users. — ============================================= — Author: V.U.M.Sastry Sagi — Create date: 12/05/2010 — Description: Drops a Database by Force — ============================================= CREATE PROCEDURE [dbo].[dropDBByForce](@DBName VARCHAR(100))…

Finding Distance Between two Locations

The below code will calculate the distance (Displacement) between two locations based on longitude and latitude. — ============================================= — Author: V.U.M.Sastry Sagi — Create date: 11/30/2010 — Description: Gets the distance between two locations — ============================================= CREATE FUNCTION [dbo].[getDistanceBetweenLatLon] (…

SQL Server 2008 Extended Events

SQL Server 2008 Extended Events are the new low level, high performance eventing system in SQL Server. They use less system resources and provide better tracking of SQL Server performance than previous methods like Perfmon and SQL Trace/Profiler events. Performance…

Limitations of SQL Azure

Below are the limitations in the SQL Azure CTP1: When writing applications for SQL Azure, you can use the following drivers and libraries: • .NET Framework Data Provider for SQL Server (System.Data.SqlClient) from the .NET Framework 3.5 Service Pack 1…