0

Why I cannot use concat function? When I run my script, this error will appear.

Msg 195, Level 15, State 10, Line 2. 'concat' is not a recognized built-in function name.

update dbo.[1A]
set Organization_ID = concat (Organization_ID, '-meow');
6
  • Which Version of SQL SERVER you are using? What is the datatype of Organization_ID column ? Commented Sep 19, 2016 at 8:08
  • SQL SERVER 2008. Datatype of Organization_ID is nvarchar(255) Commented Sep 19, 2016 at 8:30
  • Then answer below should work Commented Sep 19, 2016 at 8:32
  • i dont know why i got the error :'( Commented Sep 19, 2016 at 8:38
  • Try this update dbo.[1A] set Organization_ID = Organization_ID + '-meow '; Commented Sep 19, 2016 at 8:39

1 Answer 1

1

concat is available from SQLServer 2012,you can use + to get the same result

also use Isnull to avoid nulls Isnull(Organization_ID)+ '-meow'

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.