Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1648)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

(Page 111 of 133) 3985 Result(s) found 

 

Changing columns to rows.
Total Hit (1467) Another example that shows how to convert columnar values into individual rows.
Rating
How to calculate the statistical mode of a set of values using a SELECT statement?
Total Hit (2745)
Rating
Generate sequence numbers within a group of values.
Total Hit (1465) This example shows how to generate sequence numbers within a group of values in a SELECT statement. With proper indexes & search conditions, the example using the SELECT statement with GROUP BY will be very efficient.
Rating
Wrong usage of UPDATE FROM clause.
Total Hit (1521) This script demonstrates the wrong usage of UPDATE statement with a FROM clause esp. in case of a table with 1-to-many relationship with another tables(s).
Rating
How to order rows from a query in random order? This method should be used with caution & only after testing.
Total Hit (1546)
Rating
Flight Schedule Ordering problem.
Total Hit (1696) A flight schedule ordering problem. This demonstrates the powerful derived table feature. More details regarding the problem is in the link.
Rating
Generate combinations of data from columns.
Total Hit (2188) How can you generate various combinations of data from existing columns? This method shows one approach using the CUBE operator with the SELECT statement.
Rating
How to generate duplicates of existing rows based on the count value in a column?
Total Hit (1482)
Rating
Yet another pivot table example
Total Hit (1578)
Rating
Another pivot table example
Total Hit (3433)
Rating
How to calculate the previous & current salaries for each employees from rows that contain the start & end date for each salary?
Total Hit (1439)
Rating
How to convert integer values to hexadecimal strings in SELECT statement or computations or expressions in WHERE clause etc?
Total Hit (1407)
Rating
Minimum value from 4 variables - datetime example.
Total Hit (2070) This scripts shows how to obtain minimum value of four 4 datatime values contained in local variables. This method can be adapted to any datatye supported by the the SQL Server MIN function. This technique basically eliminates the writing of series of IF..ELSE or CASE statements. ....Read More
Rating
How to check for the existence of a file from SQL Server?
Total Hit (3830) This example uses the standard DIR command & the documented xp_cmdshell SP. The undocumented sp 'xp_fileexist' is also shown for completeness.
Rating
Conditional Firing of Triggers.
Total Hit (2082) This sample shows how you can conditionally fire triggers. This example shows how to suppress the trigger logic while inserting data from a SP & allowing other inserts to go through fine. A SQL6x/70/2000 version of the example is shown first & another one using the SQL70/2000 cursor function is show ....Read More
Rating
Custom Ranking for Search conditions ( Similar to Full-Text Rank column).
Total Hit (3057) This example demonstrates how to generate some ranking column for string searches. This column can be something like the RANK column generated by the SQL70 Full-Text feature.
Rating
How to generate sequence numbers based on values in multiple columns?
Total Hit (1512) This is similar to doing an ORDER BY on the required columns & counting the rows from the top.
Rating
Counting ocurrences of a pattern in text data
Total Hit (1436) A sample script to count the number of occurrences of a particular string pattern in a text column. This demonstrates how to use PATINDEX with simple SELECT statements.
Rating
Dissecting datetime value storage to individual dateparts.
Total Hit (1646) Ever wondered how SQL Server stores the datetime value in 8 bytes. Well, this code shows how to decode the values using simple mathematical operations.
Rating
File details using NT commands & undocumented SP.
Total Hit (2291) Getting file details is easy using the undocumented extended SP 'xp_getfiledetails'. But you can't rely on this to be the same between versions of SQL Server or even service packs. So here is an alternative method using the standard NT commands. The undocumented SP is also shown for completeness. ....Read More
Rating
Sorting only based on the numeric digits in a column containing alpha-numeric values of the form nnnXXX.
Total Hit (1846) An example for using a CASE expression in an ORDER BY clause. This solution solves the problem of sorting based on the numeric values in a column. The column contains strings of the format 'nnnXXXX' where 'n' represents a numeric digit & 'X' represents any non-numeric character. ....Read More
Rating
Finding gaps in sequential numbers.
Total Hit (2825) A simple JOIN that will determine gaps in a set of sequential values. This query will basically give the sequence number after which a gap is present.
Rating
Dynamic execution of SP ( This method is not well-known ).
Total Hit (2463) This method of dynamic SQL execution is not well-known. This will work from SQL60 & upwards. This is very useful when calling SPs dynamically with parameters of different datatypes, output parameters & return value.
Rating
Get only one matching row for each name from several address rows.
Total Hit (1464) This is the fastest way to get say only one matching address row for each person out of a set of duplicates. This logic assumes that you do not care which address row you want to display. It can be easily extended to include other checks say based on the last added address row etc. ....Read More
Rating
Sample for how to send progress info from long running sps.
Total Hit (1841) Some sample code that shows how to return progress info from long running SPs. This is useful for reporting purposes or to include other mechanisms to control the SP execution.
Rating
Maximum Value from 5 columns.
Total Hit (1414) This script shows how to obtain the maximum value of 5 columns. It is possible to do this using CASE statement but the expression gets quite lengthy. This shows an easy way to use the MAX function itself & this approach can be extended to as many columns as you want. ....Read More
Rating
Number of days between a given date & 3rd sunday of current month.
Total Hit (1439) This T-SQL script shows how to calculate the number of days between a given date and the 3rd sunday of the current month. This can be easily modified to accomodate count till 3rd saturday or 3rd monday of current month & so on.
Rating
A tricky ordering problem.
Total Hit (1749) This is 2 of the solutions to an ORDER BY problem posed in the microsoft.sqlserver.programming newsgroups. This demonstrates several powerful derived table techniques.
Rating
Stripping individual values from a comma-separated string using SELECT statement only.
Total Hit (2353) SELECT statement that demonstrate how to strip individual values from a comma-separated string. This uses a table of Numbers to solve the procedural problem.
Rating
Generic logic to search & replace characters in a string.
Total Hit (1517) A generic logic to search & replace certain characters in a string. This approach is flexible in the sense that new characters can be added for searching without modifying the logic. This will make the code more maintainable too.
Rating


(Page 111 of 133) 3985 Result(s) found  ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 ...

Recommanded Links

 

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.