Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Server CE doesn't recognize CONCAT #319

Open
Nathan0710 opened this issue May 10, 2017 · 5 comments
Open

SQL Server CE doesn't recognize CONCAT #319

Nathan0710 opened this issue May 10, 2017 · 5 comments

Comments

@Nathan0710
Copy link

The function is not recognized by SQL Server Compact. [ Name of function = CONCAT,Data type (if known) = ].

@FransBouma
Copy link
Owner

please give a code example in which this failed.

@diotteo
Copy link

diotteo commented Aug 12, 2021

Just passing through, here are examples of SQL CE string concatenation:

SELECT 'FOO' + 'BAR'; --Works
SELECT CONCAT('FOO', 'BAR'); --Fails

SELECT 'FOO' + CAST(1 as NVARCHAR) + 'BAR'; --Works
SELECT CONCAT('FOO', 1, 'BAR'); --Fails

@FransBouma
Copy link
Owner

Yeah I get that :) But I was after an example which uses massive with a string concat on CE that fails. Executing 'Concat' directly on CE might not work, but where is it originating from?

@diotteo
Copy link

diotteo commented Aug 12, 2021

Ah ok. I just found this issue while searching for a way to concat strings on SQL CE, saw the issue had been opened for years and figured I’d provide an example (along with a working fix :) ) in case that was helpful.

Have a good day!

@FransBouma
Copy link
Owner

@diotteo :) It's ok, to be honest I haven't looked at the repo for a long time. This issue is already years old :) It's likely some function which emits the CONCAT string, but haven't looked. In any case, thanks for the example :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants