Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 24th, 2008, 10:09 AM
rhogan rhogan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 3 rhogan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 59 sec
Reputation Power: 0
Update read only column

Hello all,
I'm trying to convert an existing Firebird database web site to .net 2.0. I have install FirebirdClient 2.0.1.0 and can read the Firebird database just fine. However, when I try and update the database with the existing stored procedures I'm getting this error:
FirebirdSql.Data.FirebirdClient.FbException: attempted update of read-only column ---> FirebirdSql.Data.Common.IscException: Exception of type 'FirebirdSql.Data.Common.IscException' was thrown.

Can anyone tell me why this could be happening?

Thanks in advance.
Bob

Reply With Quote
  #2  
Old March 24th, 2008, 10:37 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 4 h 53 m 59 sec
Reputation Power: 259
Start reading here

Reply With Quote
  #3  
Old March 24th, 2008, 12:42 PM
rhogan rhogan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 3 rhogan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 59 sec
Reputation Power: 0
Quote:
Originally Posted by pabloj
Start reading here


Thank you for replying quickly. The stored procedure is a simple one, no calculations and no triggers. The procedure is below:
Code:
BEGIN
ID=0;
EMAILADDRESS = DOLOWER(:EMAILADDRESS);
IF (EXISTS (SELECT SE.EMAILADDRESS,SC.WEBPASSWORD FROM STAKEHOLDEREMAIL SE, stakeholdercontact SC
    WHERE SE.STAKEHOLDERID = :STAKEHOLDERID AND SC.contactid = SE.contactid AND SC.stakeholderid = :STAKEHOLDERID
    AND SE.EMAILADDRESS=:EMAILADDRESS AND SC.WEBPASSWORD = :OLDPASSWORD)) THEN
         BEGIN
               IF ((:CONTACTID = 0) OR (CONTACTID IS NULL)) THEN
               BEGIN
                    FOR SELECT SE.contactid FROM STAKEHOLDEREMAIL SE, stakeholdercontact SC WHERE SE.STAKEHOLDERID = :STAKEHOLDERID AND SC.contactid = SE.contactid AND SC.stakeholderid = :STAKEHOLDERID  AND SE.EMAILADDRESS=:EMAILADDRESS AND SC.WEBPASSWORD = :OLDPASSWORD INTO :CONTACTID do
                       VAR_DUMMY=0;
                    ID=2;
               END
               update STAKEHOLDERCONTACT SET WEBPASSWORD = :WEBPASSWORD, 
                                             CHANGEDBY = 'WEB' WHERE STAKEHOLDERID = :STAKEHOLDERID AND CONTACTID = :CONTACTID;
          
               ID=1;
         END
ELSE
ID=0;    /* Bad User Name*/
SUSPEND;
END

Reply With Quote
  #4  
Old March 24th, 2008, 12:49 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 4 h 53 m 59 sec
Reputation Power: 259
Did you read the link I posted? Did you rule out the first case?
Quote:
This error message might show up when you try to update a computed column

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Update read only column


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway