Search Wiki:

Solutions for Common T-SQL Problems

Information presented in this WIKI represents the suggestions, ideas, and opinions of Volunteer Moderators and Answerers who support the Microsoft MSDN SQL Server Forums. (Unless specifically stated otherwise, nothing should be construed to represent the official positions or opinions of Microsoft and/or its Employees.)

Please direct any additional Questions to the MSDN SQL Server Related Forums
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
How can I Prepare My Question to Increase the Possibility of Getting a Good Solution?
What are the Rules of Conduct expected on the Forums?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Examples of Selected T-SQL Programming Constructs

Data Related Queries
Create a Comma Delimited List from a Column in a Table
Create and Use A Numbers Table
Control Return Results by Range
Find and/or Delete Duplicate Rows in a Table
Find Rows of Data Between Two Dates
Increment an AlphaNumeric Value
Use ISNULL() and COALESCE()
Lock a Stored Procedure for Single Use Only
Query an Object Whose Result Set Depends Upon the Lack of Data In Another Object
Pass and Handle a Delimited String similar to handling an Array() of Values
PIVOT Data Using T-SQL
Search all or partial columns without dynamic SQL
SELECT TOP n by Group
UNPIVOT Data Using T-SQL

Maintenance Queries
Find Last BackUp Date Of All Databases On Your Server
Find the TOP n Longest Running Procedures (or Queries), Ordered by Total Impact on Server


-----------------------------------------------------------------------------------------------------------------------------------------------------------------
How To Troubleshoot and Debug T-SQL Code
Troubleshoot Deadlocking in SQL Server.
Using the SQL Server Profiler.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Writing Transact-SQL Statements Tutorial
http://msdn2.microsoft.com/en-us/library/ms365303.aspx
___________________________________________________________________________________________________________________
Page Created By: Arnie Rowland, Mar 12, 2008
Last edited Apr 25 2008 at 7:22 PM  by ArnieRowland, version 76
Comments
kamalsaxena wrote  Dec 21 2011 at 2:00 PM  
i need some help
solution for My problem

Updating...
Page view tracker