madanponna
asked on
Crystal Report giving this error: "Query engine error: '22018:[microsoft][odbc sql server driver][sql server]syntax error converting the nvarchar value '%' to a column of data type int'"
When I enter my parameters (in Crystal Report 9) to connect to the Stored Procedure (I'm using SQL 2000 DB) I get the following error -
"Query engine error: '22018:[microsoft][odbc sql server driver][sql server]syntax error converting the nvarchar value '%' to a column of data type int.'"
This occurs when I try to add the Stored Procedure as a data source ie it has nothing to do with anything I have tried to set up in the Report
Actually in the beginning there is no problem, but once i added another variable in the same Stored Procedure of type Varchar, and I tried to Update with the modified Stored Procedure in Crystal Report 9 , then it giving above error!!!
Can anyone help?
I am running the same values i enter in Crystal Report into Query Analyser and it runs fine - is this an issue with CR9?
Thanks,
Madan Ponna
"Query engine error: '22018:[microsoft][odbc sql server driver][sql server]syntax error converting the nvarchar value '%' to a column of data type int.'"
This occurs when I try to add the Stored Procedure as a data source ie it has nothing to do with anything I have tried to set up in the Report
Actually in the beginning there is no problem, but once i added another variable in the same Stored Procedure of type Varchar, and I tried to Update with the modified Stored Procedure in Crystal Report 9 , then it giving above error!!!
Can anyone help?
I am running the same values i enter in Crystal Report into Query Analyser and it runs fine - is this an issue with CR9?
Thanks,
Madan Ponna
http://sqljunkies.com/Newsgroups/microsoft.public.sqlserver.programming/2004/5/26/236553.aspx
ASKER
Hai YZlat,
Thanks for your response!!!
I already gone through theis links . And found the answer same as one which is given in the site
www.tek-tips.com.
Moreover I already tried that way also, but unfortunately still i'm unable to find the bug!!!
Any more clues????
Thanks!!!
Waiting....
Thanks for your response!!!
I already gone through theis links . And found the answer same as one which is given in the site
www.tek-tips.com.
Moreover I already tried that way also, but unfortunately still i'm unable to find the bug!!!
Any more clues????
Thanks!!!
Waiting....
ASKER
Please close my query I got answer from other site.
Query is at: https://www.experts-exchange.com/questions/21036683/Crystal-Report-giving-this-error-Query-engine-error-'22018-microsoft-odbc-sql-server-driver-sql-server-syntax-error-converting-the-nvarchar-value-'-'-to-a-column-of-data-type-int'.html
Thanks.
Query is at: https://www.experts-exchange.com/questions/21036683/Crystal-Report-giving-this-error-Query-engine-error-'22018-microsoft-odbc-sql-server-driver-sql-server-syntax-error-converting-the-nvarchar-value-'-'-to-a-column-of-data-type-int'.html
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.