- Create FUNCTION [dbo].[GetFullNameWithNoSpace]
- (
- @First_Name varchar(50),
- @Middle_Name varchar(50),
- @Last_Name varchar(50)
- )
- RETURNS Varchar(152)
- AS
- begin
- Declare @outTime Varchar(152);
- SELECT @outTime= REPLACE(RTRIM(COALESCE(@First_Name + ' ', '') +
- COALESCE(@Middle_Name + ' ', '') +
- COALESCE(@Last_Name+ ' ', '') ), ' ', ' ')
- RETURN @outTime
- END
- GO
- SELECT dbo.[GetFullNameWithNoSpace]('ashish','','Srivastava')
Tuesday, 29 November 2016
First Name + Middle Name + Last Name Merge With One Extra Space
Subscribe to:
Post Comments (Atom)
Upload valid file in C#
protected bool CheckFileExtandLength(HttpPostedFile HtmlDocFile) { try { Dictionary<string, byte[]>...
-
CREATE TAblE #temp ( T_Name VARCHAR(50), T_Times BIGINT ) INSERT INTO #temp(T_Name,T_Times) VALUES ('ASHISH',4) IN...
-
Setting Header Programatically You can also set the cache headers programmatically. This can be useful for generated content and allows m...
-
CREATE TABLE dbo.M_Bank ( ID INT IDENTITY NOT NULL, MB_NAME NVARCHAR (50), MB_SNAME NVARCHAR (20), MB_ADDUSER ...
No comments:
Post a Comment