Search Wiki:

Common Solutions for 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
Audit or Bypass Trigger Execution
Create a Comma Delimited List from a Column in a Table
Create and Use A Numbers Table
Control Return Results by Range
Delete All Data From All User Tables In A Database
Exploring Recursive Common Table Expressions (CTE)
Find and/or Delete Duplicate Rows in a Table
Find Rows of Data Between Two Dates
Find First Available Timeslot for Scheduling
Find the Missing Parts of a List of Requirements
Implementation of DDL Trigger in SQL Server 2005
Increment an AlphaNumeric Value
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
Rank Values in Groups
Search all or partial columns without Dynamic SQL while avoiding SQL Injection
Search all or partial columns with Dynamic SQL while avoiding SQL Injection
SELECT TOP n by Group

Maintenance Queries
Automate Backups in SQL Express
Detach All User Databases
Find Last BackUp Date Of All Databases On Your Server
Find Long Running Agent Jobs
Find the TOP n Longest Running Procedures (or Queries), Ordered by Total Impact on Server
Performing Common Maintenance Tasks in SQL Express
Transfer Logins to Another Server

Best Practices and Guidelines
Best practices Design and Developement guidelines for Microsoft SQL Server

SQL Server 2008
Manage unstructured data using FILESTREAM Feature in SQL Server 2008

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

Writing Transact-SQL Statements Tutorial
Page Created By: Arnie Rowland, Mar 12, 2008
Last edited Jul 29 2008 at 8:07 AM  by madhuottapalam, version 97
kamalsaxena wrote  Dec 21 2011 at 2:00 PM  
i need some help
solution for My problem

Page view tracker