on 03-10-2015 12:07 PM
Hi Rui,
It seems that the problem is not in the syntax itself, but in the data used to build the dynamic query.
In order to check it, you need to evaluate the final SQL statement you're running.
Your code has 2 parts:
1. building a query statement.
2. running the query.
Can you tell which part fails to run? You can trace that by replacing the last row. Instead of:
Exec( @SQL+@SQLTT)
write
Select( @SQL+@SQLTT)
If you get results that means that the problem is in the 2nd part. You can evaluate the SQL statement you got to see the problem.
Beni.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when I want to execute it in SAP B1 it gives the error message: incorrect syntax near '0'.
this store procedure was working fine but suddenly is giving this error, no patch updates were done in B1.
Message was edited by: Rui Pereira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rui,
your SP is working fine on my DB .
--Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.