By tag: TSQL
0
kicks
Explanation of my winninig solution to TSQL Challenge 17
Naomi explains her winning solution to TSQL Challenge 17
0
kicks
TSQL Challenge 27 - Identify overlapping weekly schedules of Nurses
This challenge is related to a scheduling problem in the home health care industry. The task is to look into the schedules of nurses and identify any overlapping schedules.
0
kicks
XQuery Lab 55 – Extracting values from XML elements that matches a str
Here is another XQuery exercise that uses the contains() function to match a string pattern against an XML element and retrieves values from a sibling element.
0
kicks
Cannot resolve collation conflict for column 1 in SELECT statement
This post explains how to fix the SQL Server error message "Msg 468, Level 16, State 9, Line 1 Cannot resolve the collation conflict between "Arabic_CI_AS" and "SQL_Latin1_General_CP1_CI_AI" in the equal to operation".
0
kicks
A T-SQL Holiday Message
Have fun with this TSQL Holiday Message. Run the code given in the story and you will be surprised to see the output.
0
kicks
Michael DeFehr explains his winning solution to TSQL Challenge 14
Michael DeFehr has written an excellent explanation of his winning solution to TSQL Challenge 14.
0
kicks
How to copy, cut and paste column names from tables
How to copy, cut and paste column names from tables while in the SQL 2000 Query Analyzer.
0
kicks
How To: Create Dynamic File System Directory in TSQL
I have created a Backup Script to backup all the databases in our SQL Server 2005. I want to keep old backups for sometime for some reason; so I want to create subdirectory with the run date as the name of the folder to separate the set of backups by date.
0
kicks
How To: Rename SQL Server 2005 Database Using TSQL
For some reasons, DBA’s need to rename their Databases. One of the reasons might be to comply to Best Practices Policy changes.
Here we are going to rename our Database named “Bad_Ass_DB” into “Best_Practice_DB”. This is how Database renaming with TSQL is done in SQL Server 2005....
0
kicks
Tips & tricks for writing better queries presentation
Link to the "Writing Better Queries" presentation that Joe Webb gave at the Nashville SQL Server User Group meeting on 4 April 2008.
0
kicks
Does the order of criteria the WHERE clause matter?
Does the order of the search criteria make any difference in Microsoft SQL Server's ability to use indexes or resolve a query? In this post, Joe provides a demonstration of how SQL Server can optimize the WHERE clause to its benefit.
0
kicks
Build a complete Stored Procedure based Data Access Layer ... Part 2
Build a complete Stored Procedure based Data Access Layer using Code Generation - Part 2
0
kicks
Build a complete Stored Procedure based Data Access Layer ... Part 1
Build a complete Stored Procedure based Data Access Layer using Code Generation Part 1