Viewing 15 posts - 3,556 through 3,570 (of 9,399 total)
If this is something you need to do frequently, you can create an inline table-valued function to do the cleaning for you. Here's one:
CREATE FUNCTION dbo.CleanAlphaNumeric(@OriginalText Varchar(8000)) RETURNS TABLE...
March 18, 2016 at 5:06 am
Nice and simple, once you see the data type. That was probably the point. Thanks, Steve.
March 18, 2016 at 4:58 am
BWFC (3/18/2016)
BL0B_EATER (3/18/2016)
ThomasRushton (3/18/2016)
Ed Wagner (3/17/2016)
djj (3/17/2016)
Grumpy DBA (3/17/2016)
Manic Star (3/17/2016)
LightBeer
Ale
Pub
database
page
plant
Zeppelin
March 18, 2016 at 4:54 am
djj (3/17/2016)
Grumpy DBA (3/17/2016)
Manic Star (3/17/2016)
LightBeer
Ale
Pub
March 17, 2016 at 1:53 pm
DonlSimpson (3/17/2016)
crookj (3/17/2016)
Ed Wagner (3/17/2016)
Luis Cazares (3/17/2016)
Revenant (3/17/2016)
DonlSimpson (3/17/2016)
Ed Wagner (3/17/2016)
crookj (3/17/2016)
Manic Star (3/17/2016)
Ed Wagner (3/17/2016)
Grumpy DBA (3/17/2016)
Ed Wagner (3/17/2016)
ThomasRushton (3/17/2016)
Grumpy DBA (3/17/2016)
djj (3/17/2016)
TerminatorGenisys
Sledgehammer
Gabriel (Peter)
Solsbury (Hill)
Eyes
Private
Sergeant
Colonel
Kernel
Windows (or any other OS)
Doors
Fire
(the)...
March 17, 2016 at 12:33 pm
Luis Cazares (3/17/2016)
Revenant (3/17/2016)
DonlSimpson (3/17/2016)
Ed Wagner (3/17/2016)
crookj (3/17/2016)
Manic Star (3/17/2016)
Ed Wagner (3/17/2016)
Grumpy DBA (3/17/2016)
Ed Wagner (3/17/2016)
ThomasRushton (3/17/2016)
Grumpy DBA (3/17/2016)
djj (3/17/2016)
TerminatorGenisys
Sledgehammer
Gabriel (Peter)
Solsbury (Hill)
Eyes
Private
Sergeant
Colonel
Kernel
Windows (or any other OS)
Doors
Fire
March 17, 2016 at 11:38 am
Gary Varga (3/17/2016)
Steve Jones - SSC Editor (3/17/2016)
Gary Varga (3/17/2016)
Jeff Moden (3/16/2016)
March 17, 2016 at 11:14 am
crookj (3/17/2016)
Manic Star (3/17/2016)
Ed Wagner (3/17/2016)
Grumpy DBA (3/17/2016)
Ed Wagner (3/17/2016)
ThomasRushton (3/17/2016)
Grumpy DBA (3/17/2016)
djj (3/17/2016)
TerminatorGenisys
Sledgehammer
Gabriel (Peter)
Solsbury (Hill)
Eyes
Private
Sergeant
Colonel
March 17, 2016 at 9:34 am
Grumpy DBA (3/17/2016)
Ed Wagner (3/17/2016)
ThomasRushton (3/17/2016)
Grumpy DBA (3/17/2016)
djj (3/17/2016)
TerminatorGenisys
Sledgehammer
Gabriel (Peter)
Solsbury (Hill)
Eyes
March 17, 2016 at 9:09 am
Jeff Moden (3/17/2016)
TomThomson (3/17/2016)
mister.magoo (3/16/2016)
March 17, 2016 at 8:49 am
ThomasRushton (3/17/2016)
Grumpy DBA (3/17/2016)
djj (3/17/2016)
TerminatorGenisys
Sledgehammer
Gabriel (Peter)
March 17, 2016 at 8:46 am
ThomasRushton (3/17/2016)
Revenant (3/16/2016)
Ed Wagner (3/16/2016)
whereisSQL? (3/16/2016)
Grumpy DBA (3/16/2016)
DonlSimpson (3/16/2016)
BasketballMadness
Bracket
Parenthesis
Quote
S'gonnercostyerguv'nor...
Governor
March 17, 2016 at 5:25 am
Jeff Moden (3/16/2016)
It's been my experience that it's more important to front-enders than DBAs unless the DBA is also a "Portable Code" zealot. As BOL states, they are functionally...
March 16, 2016 at 6:59 pm
Jeff Moden (3/16/2016)
mister.magoo (3/16/2016)
Jeff Moden (3/16/2016)
So, what would you prefer to see with the following (using a cte as if a Table Source)...
WITH cteTestData (RowNum,CSV) AS
(
SELECT 1, '1,2,3' UNION...
March 16, 2016 at 6:47 pm
However you approach it, the query should work fine from .NET. If you want to keep the query code in the database, turn it into a stored procedure and...
March 16, 2016 at 6:37 pm
Viewing 15 posts - 3,556 through 3,570 (of 9,399 total)