Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find a string within a column in sqlserver
Message
From
03/06/2008 07:57:49
 
 
To
02/06/2008 17:42:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01321126
Message ID:
01321246
Views:
10
Perfect Stefan, thanks!

>>Oh gosh, it couldn't be that simple could it? I'll test it - thanks Stefan!
>
>Actually I was not sure when I read your description, so I'm happy you did not laugh at me :-)
>FWIW, if you want only those rows where the second part after the semicolon exactly equals "ABC" (ignoring whitespace), then I believe something like this might work (untested)
>
>Select * From dbo.myTable
>    Where
>        Replace(
>            SubString(
>                myField, CharIndex(';',myField), Len(myField)
>                ),
>            ' ',''
>            ) = ';ABC';
>
>
>
>Regards
>-Stefan
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform