Mar 6, 2012 #1 olrac MIS Nov 23, 2010 16 CA Hi, I am trying to pass a string parameter 15 characters long: RCC.RGCC_Code = {?Cost_centre}. The string I type in is 91.71.11520000 but I keep getting the error message database vendor code 102. Any ideas? I use Crystal Version 11.0 Thanks
Hi, I am trying to pass a string parameter 15 characters long: RCC.RGCC_Code = {?Cost_centre}. The string I type in is 91.71.11520000 but I keep getting the error message database vendor code 102. Any ideas? I use Crystal Version 11.0 Thanks
Mar 6, 2012 #2 Turkbear Technical User Mar 22, 2002 8,631 US Which database? How is RCC.RGCC_Code defined in the table? To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Which database? How is RCC.RGCC_Code defined in the table? To Paraphrase:"The Help you get is proportional to the Help you give.."
Mar 7, 2012 Thread starter #3 olrac MIS Nov 23, 2010 16 CA Hi Turkbear, The data is from our scheduling application (kronos ) and data is in our data warehouse (MS SQL server). The field is defined as char(24), not null. I wrote the query in SQL (MS 2005 Management server) and placed it in Crystal. I use other parameters (date, employee numbers...) and they have worked so far. Thanks Upvote 0 Downvote
Hi Turkbear, The data is from our scheduling application (kronos ) and data is in our data warehouse (MS SQL server). The field is defined as char(24), not null. I wrote the query in SQL (MS 2005 Management server) and placed it in Crystal. I use other parameters (date, employee numbers...) and they have worked so far. Thanks
Mar 7, 2012 #4 Turkbear Technical User Mar 22, 2002 8,631 US Hi, This site: http://www.sql-server-helper.com/error-messages/msg-1-500.aspxsems to indicate a syntax error - try this in your SQL command: RCC.RGCC_Code = "{?Cost_centre}" Possibly the data is not being quoted as a string by Crystal when used in a command (your self-written SQL Query) To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Hi, This site: http://www.sql-server-helper.com/error-messages/msg-1-500.aspxsems to indicate a syntax error - try this in your SQL command: RCC.RGCC_Code = "{?Cost_centre}" Possibly the data is not being quoted as a string by Crystal when used in a command (your self-written SQL Query) To Paraphrase:"The Help you get is proportional to the Help you give.."
Mar 8, 2012 #5 lbass Technical User Feb 9, 2002 32,816 US If this is in a command, it should be single quotes (as Turkbear will remember when I say this, but good catch, Turkbear...): RCC.RGCC_Code = '{?Cost_centre}' -LB Upvote 0 Downvote
If this is in a command, it should be single quotes (as Turkbear will remember when I say this, but good catch, Turkbear...): RCC.RGCC_Code = '{?Cost_centre}' -LB
Mar 10, 2012 #6 Turkbear Technical User Mar 22, 2002 8,631 US Thanks LB, you are right as usual!! To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Thanks LB, you are right as usual!! To Paraphrase:"The Help you get is proportional to the Help you give.."