Sunday, June 30, 2013

Substring/Replace in sql server

Substring

SELECT
    (SELECT substring(DomainName,1,(charindex(',',DomainName)-1)))
FROM Settings.Settings

Replace

(SELECT REPLACE(p.FirstPart,'<p>','<p style="text-align:center;"')) AS 'FirstPart',

No comments:

Post a Comment

Complete Authentication System in ASP.NET Core using JWT

JWT (JSON Web Token) authentication is widely used for securing APIs in modern applications. In this article, we will build a complete authe...