Solved

CF Grid error with oracle

Posted on 2000-05-15
4
218 Views
Last Modified: 2013-12-24
I used the example code that came w/CF Studio 4.5 using the access database w/cfsnippet datasource.  Yet when i replace the query & datasource with an oracle one (were using the oracle 7.3 native driver) along with the changes to the grid columns. It loads the applet up just fine but when u try to update it i come back with the error:

The table 'auction_fut' contained no columns in the grid 'cforacle'.


This error may have been caused by not specifying the table name in the format which the ODBC data source expects (e.g. SQL Server table names must be qualified with the database name and table owner, as in 'customers.dbo.orders').

Not sure what this means? Any suggestions?
0
Comment
Question by:dolomite
4 Comments
 
LVL 2

Expert Comment

by:dlewis9
ID: 2814103
Can you post your code?  I think I found the example you are referencing, but it will help to see your modifications...

The error message suggests that perhaps you need to preface your table name with the table owner on the CFGRIDUPDATE and possibly in the CFQUERY...sounds like they're not matching somewhere..it's pretty picky.  If you can post debug info, that may help too because you can see the Form variables that the CFGRID creates.
0
 
LVL 5

Expert Comment

by:nathans
ID: 2821308
I have a feeling you may have to manually update instead of using the CFGRIDUPDATE

Nathans
ColdFusion Tips Plus
www.nsnd.com
0
 
LVL 9

Accepted Solution

by:
Dain_Anderson earned 50 total points
ID: 2828417
First off, make sure you have Oracle version 7.3.4.0.0 or better; otherwise, it may not work. Also, make sure your default database name in your datasource is set correctly -- if not, you are connecting to the wrong one.
You can override this by using the DBNAME attribute. Since this is Oracle, your TABLENAME attribute's value must be in uppercase letters. It might be wise to use the TABLEQUALIFIER attribute to specify which database holds the table specified in TABLENAME.
   
It sounds like you need to uppercase the table name and add the TABLEOWNER attribute -- this will add the owner before the database objects.

In Oracle, it should look like this:

<CFGRIDUPDATE
    GRID="myGrid"
    DATASOURCE="myDSN"
    DBTYPE="Oracle73"
    DBSERVER="myDBserverName"
    DBNAME="dbName"
    TABLENAME="TABLE_NAME"
    TABLEOWNER="owner"
    TABLEQUALIFIER="databaseNameInOracle">

Hope that helps
0
 

Author Comment

by:dolomite
ID: 2834202
Thanks, that did the trick.  The code works like a champ now.
0

Featured Post

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Join & Write a Comment

Suggested Solutions

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

20 Experts available now in Live!

Get 1:1 Help Now