getting spaces while concatenating column and string


hi all,

i am getting spaces while concatenating column , string.

below example

select empname++'test' employee

result: mandava                test

expected result: mandavatest

regards,

mandava.

select ltrim(rtrim(empname))+'test' employee

hope helps!!



SQL Server  >  Getting started with SQL Server



Comments

Popular posts from this blog

SQL server replication error Cannot find the dbo or user defined function........

BIT Version

Admin Permissions