Solved

VS 2008 -- ORACLE -- TableAdapter Wizard

Posted on 2009-07-08
1
431 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
1 Comment
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 125 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to take different types of Oracle backups using RMAN.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now