- 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[]...
-
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 ...
-
SELECT distinct(volume_mount_point), total_bytes/1048576 as Size_in_MB, total_bytes/1048576/1024 as Size_in_GB, available_bytes/1048576 ...
No comments:
Post a Comment