Michael W Stark
Navigation
Home
Virtual Earth
List View
Smart Searching
Grid w/Filter
SilverLight
Flash
Contact
Blog
SQL string manipulation
String manipulation samples that frequently would be in the client or server scripting environment. Implemented here as sql functions. The functions are then used as columns in the Select and where clause.
Array Scan...
Array Scan
Select a delimiter, string, array item.
As you select the items the string is scanned as an array.
The string value at the selected position is displayed.
Delimiter
|
*
String
ABC|DEF|GHI|JKL|MNO|PQR
123|456|789|012|345|678|999
Item Number
0
1
2
3
4
5
Result
Value at Item:
MNO
Is Email Valid
Is Email Address Valid?
Check for @ symbol.
Check for a period after the @ symbol.
Email to Test
test@starknetwork.com
testXstarknetwork.com
@starknetwor.com
test@.com
Is Valid?
Valid:
1
1= valid 2= not valid
Pad a String
Pad a string
Pad a string with a supplied character.
Provide the string.
Specify the length of the final string.
Pad Character
0
X
$
Length of output
5
10
15
20
String to Pad
456
Stark
3432432
Results
00456
Convert Seconds to DD-HH-MM-SS
Convert Seconds to DD-HH-MM-SS
Input Seconds.
Receive formatted string.
94000
95000
110000
DD-HH-MM-SS:
01:03:0*:0*
Michael W Stark
Software Developer
.Net 3.5
SQLServer 2005 2008
Rich Interface Design
Rapid Development
Flash
My Work
StarkNetwork.com
StarkMediaWorks.com
myCoastalCabinet.com
AlonsoFootball.net
The Conmy Center
OurLadyDunedin.org
notMYgranny.com
network-Synergy.com
GrooveDogCabs.com
SQL Samples
2nd Sales by Customer
String Manipulation
Pivot and Rank