- Joined
- Nov 17, 2008
- Messages
- 31
- Reaction score
- 9
Hi all
I’m rebuilding an existing CFD app that was originally created on 3CX v18. I opened the project in CFD v20 to rebuild it so it will run on v20, but I’m getting this build error:
SqlStatement must be a constant string value. Please use parameters for variable parts to avoid SQL injection.
In v18 the SQL was assembled with an expression like this:
CONCATENATE
Constant string: select * from Centrale.dbo.Phonebook where CLIP like
Varianle: session.ani
Constant string: '
Goal: when a call comes in, look up the caller’s number (ANI) in Centrale.dbo.Phonebook and route accordingly.
Does anybody knows what i have to change to make this work?
I’m rebuilding an existing CFD app that was originally created on 3CX v18. I opened the project in CFD v20 to rebuild it so it will run on v20, but I’m getting this build error:
SqlStatement must be a constant string value. Please use parameters for variable parts to avoid SQL injection.
In v18 the SQL was assembled with an expression like this:
CONCATENATE
Constant string: select * from Centrale.dbo.Phonebook where CLIP like
Varianle: session.ani
Constant string: '
Goal: when a call comes in, look up the caller’s number (ANI) in Centrale.dbo.Phonebook and route accordingly.
Does anybody knows what i have to change to make this work?