MannuBhai


Hi All,

Can we use the SUBSTRING or PATINDEX function with a User Defined Function as one of the parameters Something like this:

Code Block

Select SUBSTRING(Select * from DB.dbo.Function('Parameter'), PATINDEX('%\%', Select * from DB.dbo.Function('Parameter'), 8)

Mannu.



Re: Substring and Patindex having an User Defined Function

MannuBhai


Hi All,

Yes, we can do this. I just figured this out. The fault was that I was not using braces. It was solved. Thanks.

Mannu.