For code submitted August 2008 Contest Winners and Superior Code |
|
|
|
|
For code submitted February 2008 Contest Winners and Superior Code |
|
|
|
|
For code submitted January 2008 Contest Winners and Superior Code |
|
|
|
|
For code submitted September 2007 Contest Winners and Superior Code |
|
|
|
|
For code submitted August 2007 Contest Winners and Superior Code |
|
|
|
|
For code submitted March 2007 Contest Winners and Superior Code |
|
Column Descriptions |
|
A great way to keep track of the original intent of the developer is to add descriptions to columns of the tables in your database (see below using Enterprise Manager)... |
| |
|
|
For code submitted January 2007 Contest Winners and Superior Code |
|
|
|
|
For code submitted November 2006 Contest Winners and Superior Code |
|
|
|
|
For code submitted September 2006 Contest Winners and Superior Code |
|
|
|
|
For code submitted June 2006 Contest Winners and Superior Code |
|
Fill Times using specific interval |
|
This piece of code can be used in any application to fill the 24 hours time combo box using specified interval.
It formats the time as hour:minute... |
| |
|
ISNUMERIC is not “ALL DIGITS” |
|
There are many cases where you need to ensure that the string data you are working with includes only numeric digits. Most Developers will use the built in ISNUMERIC function to make such a check... |
| |
|
For code submitted May 2006 Contest Winners and Superior Code |
|
|
|
|
For code submitted April 2006 Contest Winners and Superior Code |
|
|
|
T-SQL SYNTAX GUIDE |
|
T-SQL SYNTAX GUIDE, geate guide for Programmer's who uses the query analyzer a lot. This is the fastest way to create object on SQL and modify it. |
| |
|
For code submitted March 2006 Contest Winners and Superior Code |
|
|
|
|
For code submitted February 2006 Contest Winners and Superior Code |
|
GetTableSpace |
|
This stored procedure returns the list of tables with number of rows, data space used and index space used numbers... |
| |
|
|
For code submitted January 2006 Contest Winners and Superior Code |
|
Business Entity Class Generator |
|
This SP accepts a database object name (table, view) parameter and generates (C# code) custom entity class based on the object's fields... |
| |
|
|
For code submitted December 2005 Contest Winners and Superior Code |
|
Logical Operator |
|
How to search with only one parameter several values of a field in a table |
| |
|
|
For code submitted September 2005 Contest Winners and Superior Code |
|
|
|
|
For code submitted June 2005 Contest Winners and Superior Code |
|
|
|
|
For code submitted May 2005 Contest Winners and Superior Code |
|
Send Fax With T-SQL Using MS-Word |
|
The following example, ("Full Commented to make it understand by VB Developers"), creates a Word document and retrieves its Application object... |
| |
|
|
For code submitted April 2005 Contest Winners and Superior Code |
|
|
|
Is it a leap year? |
|
Here are two ways to find out if a year is a leap year, via SQL*Plus:... |
| |
|
For code submitted February 2005 Contest Winners and Superior Code |
|
N Queens problem |
|
Purpose is to show how the N Queens problem can be solved using SQL. In addition it includes XML, XSL, and Oracle Forms program to display generated solutions. |
| |
|
|
For code submitted November 2004 Contest Winners and Superior Code |
|
Deleting Duplicate Rows |
|
The Purpose of this code is to delete the duplicate values occuring in a table. This code is column-oriented... |
| |
|
|
For code submitted September 2004 Contest Winners and Superior Code |
|
Multiple VALUES insert |
|
Use this little trick to INSERT MULTIPLE row values instead of using multiple INSERT statements to improve performance and typing. |
| |
|
|
For code submitted July 2004 Contest Winners and Superior Code |
|
|
|
SQL / DB Tutorial |
|
Learn SQL the right way - Learn about referential integrity, normal forms, and joins. Very good introduction for DB newbies. |
| |
|
For code submitted May 2004 Contest Winners and Superior Code |
|
|
|
|
For code submitted April 2004 Contest Winners and Superior Code |
|
|
|
|
For code submitted February 2004 Contest Winners and Superior Code |
|
|
|
|
For code submitted January 2004 Contest Winners and Superior Code |
|
Auto ID Generate |
|
This is very simple personal auto ID generator procedure and return VARCHAR value but first it check existing values that u can insert in VARCHAR field of ur TABLE. |
| |
|
|
For code submitted September 2003 Contest Winners and Superior Code |
|
|
|
|
For code submitted July 2003 Contest Winners and Superior Code |
|
Database Documentor |
|
SQL Server database documentor. Automatically creates a MS Word documentation of your chosen database. You will need to enable Word macros, and use medium security settings. |
| |
|
|
For code submitted June 2003 Contest Winners and Superior Code |
|
|
|
|
For code submitted May 2003 Contest Winners and Superior Code |
|
|
|
|
For code submitted April 2003 Contest Winners and Superior Code |
|
Split Function |
|
Enables SQL Server to perform the Split Function in stored procedures/views/functions |
| |
|
|
For code submitted March 2003 Contest Winners and Superior Code |
|
|
|
SQL Calendar (Updated) |
|
Displays complete calendar of any given year. Updated version of original code... Easy to alter to fit your needs.
Call--- Execute Calendar 2003 |
| |
|
For code submitted February 2003 Contest Winners and Superior Code |
|
SQL Server Paging |
|
This is the code for Paging in SQL Server. ONLY uses the 2 lines of Select Statement!!!! |
| |
|
|
For code submitted December 2002 Contest Winners and Superior Code |
|
Lie Finder database |
|
This databse is specifically designed to keep u free from remembering nicks,
IP addresses,Dates of birth,email addresses,hobbies and other information relating to ur friends.
|
| |
|
xOustUsers |
|
OustUser is a Stored Procedure that kills all of the processes for a specified database. I mainly find this useful when I have to restore a database. |
| |
|
For code submitted November 2002 Contest Winners and Superior Code |
|
SQL reference guide v.1.02 |
|
This is a little piece of paper which I made for the classes which I teach in VB, and this reference guide has been made for use with ACCESS-databases but should work with SQL SERVER.
|
| |
|
|
For code submitted October 2002 Contest Winners and Superior Code |
|
|
|
|
For code submitted September 2002 Contest Winners and Superior Code |
|
SQL CALENDAR |
|
UPDATED:Produces Full Calendar for each Month in a Year. Just pass year as an integer. Let me know if it proves useful. Call it Like:
Execute Calendar 2002 |
| |
|
|
For code submitted August 2002 Contest Winners and Superior Code |
|
|
|
|
For code submitted July 2002 Contest Winners and Superior Code |
|
|
|
|
For code submitted June 2002 Contest Winners and Superior Code |
|
|
|
|
For code submitted May 2002 Contest Winners and Superior Code |
|
pl/sql mega tutorial |
|
This is a great 50 pages notes/tutorials on pl/sql blocks, exception handling, procedures, functions, triggers, packages.... |
| |
|
SQL In Simple English - Part II |
|
This article mainly deals with SQL Joins and SQL subqueries. Both of these are extremely useful SQL constructs and should be learnt by all beginners. |
| |
|
For code submitted April 2002 Contest Winners and Superior Code |
|
Tedious queries 150 |
|
These are the worlds most tedious queries....all r solved. If you solve these queries then u will become the master of sql... |
| |
|
|
For code submitted March 2002 Contest Winners and Superior Code |
|
|
|
|
For code submitted February 2002 Contest Winners and Superior Code |
|
|
|
|
For code submitted December 2001 Contest Winners and Superior Code |
|
|
|
|
For code submitted November 2001 Contest Winners and Superior Code |
|
|
|
|
For code submitted October 2001 Contest Winners and Superior Code |
|
|
|
|
For code submitted September 2001 Contest Winners and Superior Code |
|
|
|
|
For code submitted July 2001 Contest Winners and Superior Code |
|
|
|
|
For code submitted June 2001 Contest Winners and Superior Code |
|
Spaces Used |
|
Space Used : This script gives you all the space used by each table |
| |
|
|
For code submitted May 2001 Contest Winners and Superior Code |
|
|
|
|
For code submitted April 2001 Contest Winners and Superior Code |
|
Insert Procedure Generator |
|
Produce an "insert" procedure with full transaction and error handling by simply passing a table name to the procedure. |
| |
|
|
For code submitted March 2001 Contest Winners and Superior Code |
|
|
|
|
For code submitted February 2001 Contest Winners and Superior Code |
|
RandomBetween |
|
How to generate random numbers within a given range. |
| |
|
Script your data |
|
This procedure generates INSERT statements using existing data from given tables that you can use to transfer the data elsewhere. Check it out! |
| |
|
|
|
|
For code submitted January 2001 Contest Winners and Superior Code |
|
|
|
sp_GrantPermissions |
|
Grants Select, Insert, Update, Delete, and Execute permissions to all stored procedures and user defined tables and views. |
| |
|
For code submitted December 2000 Contest Winners and Superior Code |
|
|
|
sp_sessBCP |
|
Bulk Copy(BCP) data out of one or all tables from a specified database and specified server to one or all tables in a database on the same or different server. |
| |
|
For code submitted November 2000 Contest Winners and Superior Code |
|
|
|
FindDupes |
|
Learn how to detect duplicate rows in a table and provide a count of the dupes. |
| |
|
For code submitted October 2000 Contest Winners and Superior Code |
|
|
|
|
For code submitted August 2000 Contest Winners and Superior Code |
|
|
|
|
For code submitted July 2000 Contest Winners and Superior Code |
|
Array-like Manipulation |
|
SQL is set oriented so programmers often have a hard time duplicating tried and true procedural algorithims. Heres some help. |
| |
|
Correlated Query Example |
|
If you're new to SQL, correlated queries can make you scratch your head. This example eases you through it. |
| |
|
|
|
|
|
|
SQL Server Backup Strategy |
|
If you wait until you lose data before you read this, you may be too late! Learn how to make the recovery process an easy one! |
| |
|
|
|
|