|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Start reading here
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#3
|
|||
|
|||
|
Quote:
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
|
|
#4
|
||||
|
||||
|
Did you read the link I posted? Did you rule out the first case?
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Update read only column |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|