Viewing 8 posts - 1 through 8 (of 8 total)
Yes you can. Use this as an example:
declare @STR nvarchar(1000)
set @STR = 'profit profit'
select len(replace(@str, 'profit', 'profit_'))-len(@str)
-Mike
December 4, 2004 at 7:33 am
Although not TSQL specific, Joe Celko's SQL For Smarties has always been one of my favorites.
-Mike
Michael Levy
August 2, 2002 at 6:33 am
quote:
I have tested yours replies but when I run my stored procedure from an aspx page raise an exception...
July 19, 2002 at 6:33 am
This really sounds more like a presentation operation. What about having your front-end do this?
-Mike
Michael Levy
July 18, 2002 at 10:30 am
July 17, 2002 at 10:47 am
Can you make the CURSOR parameter optional. Then you wouldn't have to map a parameter to it when making the ADO call.
-Mike
Michael Levy
July 17, 2002 at 10:44 am
July 17, 2002 at 10:42 am
What about using a table function for your application state and UNIONing it into the the query that returns the rest of the query?
-Mike
Michael Levy
July 15, 2002 at 7:11 am
Viewing 8 posts - 1 through 8 (of 8 total)