Solved

VS 2008 -- ORACLE -- TableAdapter Wizard

Posted on 2009-07-08
1
450 Views
Last Modified: 2013-12-17
The below "WHERE FMCODE = @FMCODE" works fine when using the VS 2008 TableAdapter with MSSQL, but fails with a "ORA-00936 missing expression" ERROR when doing via Oracle 10g.

Attached are my notes and Oracle schema.
  ** Expert Exchange does not allow me to post the VS.net APP

How can I fix ?
---------------------------------------------------------------------
SELECT     FMALERTS, FMCODE, FMCOMPONENTTOTAL, FMDENSITY, FMDENSITYCNVT, FMENTITYID, FMENTITYOBJECTID, FMHYPERLINK, FMISTEMPLATE,
                      FMLOSS, FMNONPUCOST, FMNONPUULCOST, FMNOTEBOOKNUMBER, FMNOTEBOOKPAGES, FMPRODUCEDRESOURCE, FMPUCOST,
                      FMPUCOSTCNVT, FMPUULCOST, FMPUULCOSTCNVT, FMREFSECTYPEID, FMREFSTATUSID, FMREFUSERTYPEID, FMTEMPLATEID,
                      FMTOTALBATCHSIZE, FMTOTALBATCHSIZECNVT, FMUNITIDCOST, FMUNITIDFORMULATOR, FMUNITIDSTDBATCH, FMUNITIDSTDDENSITY,
                      FMVERSION
FROM         FMFORMULA
WHERE FMCODE = @FMCODE
ORDER BY FMCODE, FMENTITYID, FMVERSION
note.zip
0
Comment
Question by:finance_teacher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 125 total points
ID: 24807605
You cannot use @ syntax in Oracle. That is SQL Server syntax.

For bind variable use the :syntax or the ? syntax.

Otherwise, variables are not prefixed with any @, they are simply declared like:

DECLARE
   i  integer;
   s varchar;
BEGIN
  i := 1;
END;
/
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question