|
Log in | ||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have the following very simple stored procedure:
DROP ROUTINE IF EXISTS "GetMyRecord"; CREATE PROCEDURE "GetMyRecord" () READS SQL DATA -- needs either read-access --MODIFIES SQL DATA -- or write access begin select * from MyRecord; END MyRecord is a view. If I call this SP from EnterpriseManager I get the results I expect. When I go to Delphi and drop a TnxStoredProc and set the Database and the StoresProcName and try to execute or open the stored proc I get the following error message. This occurs at runtime, or at design time if I set ActiveDesigntime to TRUE. --------------------------- Error --------------------------- NexusDB: nxStoredProc1: Query execution failed: Unexpected exception object raised: [EAccessViolation] Access violation at address 006C72F7 in module 'nxServer.Exe'. Read of address 00000039 [$3CA1/15521]. --------------------------- OK --------------------------- To make sure I had all other settings correct, I called another SP that inserts data for MyRecord (adds data to multiple tables), all worked as expected. This is my first attempt to return a result set using a Select. Am I totally missing something? Mack |
|
#2
|
|||
|
|||
|
Mack wrote:
> I have the following very simple stored procedure: > > DROP ROUTINE IF EXISTS "GetMyRecord"; > > CREATE PROCEDURE "GetMyRecord" () > READS SQL DATA -- needs either read-access > --MODIFIES SQL DATA -- or write access > begin > select * from MyRecord; > END > > > MyRecord is a view. > > If I call this SP from EnterpriseManager I get the results I expect. > When I go to Delphi and drop a TnxStoredProc and set the Database and > the StoresProcName and try to execute or open the stored proc I get > the following error message. This occurs at runtime, or at design > time if I set ActiveDesigntime to TRUE. > > --------------------------- > Error > --------------------------- > NexusDB: nxStoredProc1: Query execution failed: > Unexpected exception object raised: [EAccessViolation] Access > violation at address 006C72F7 in module 'nxServer.Exe'. Read of > address 00000039 [$3CA1/15521]. > --------------------------- > OK > --------------------------- > > > To make sure I had all other settings correct, I called another SP > that inserts data for MyRecord (adds data to multiple tables), all > worked as expected. > > This is my first attempt to return a result set using a Select. Am I > totally missing something? > > Mack I am not sure you can update a view. I think they are read only. -- |
|
#3
|
|||
|
|||
|
I am not updating the view. I am simply perfoming a view. Views
should be able to be updated as long as it can return a live result set. Mack On 24 May 2006 11:29:48 +0100, "David Guest" <dpguest@bestweb.net> wrote: >Mack wrote: > >> I have the following very simple stored procedure: >> >> DROP ROUTINE IF EXISTS "GetMyRecord"; >> >> CREATE PROCEDURE "GetMyRecord" () >> READS SQL DATA -- needs either read-access >> --MODIFIES SQL DATA -- or write access >> begin >> select * from MyRecord; >> END >> >> >> MyRecord is a view. >> >> If I call this SP from EnterpriseManager I get the results I expect. >> When I go to Delphi and drop a TnxStoredProc and set the Database and >> the StoresProcName and try to execute or open the stored proc I get >> the following error message. This occurs at runtime, or at design >> time if I set ActiveDesigntime to TRUE. >> >> --------------------------- >> Error >> --------------------------- >> NexusDB: nxStoredProc1: Query execution failed: >> Unexpected exception object raised: [EAccessViolation] Access >> violation at address 006C72F7 in module 'nxServer.Exe'. Read of >> address 00000039 [$3CA1/15521]. >> --------------------------- >> OK >> --------------------------- >> >> >> To make sure I had all other settings correct, I called another SP >> that inserts data for MyRecord (adds data to multiple tables), all >> worked as expected. >> >> This is my first attempt to return a result set using a Select. Am I >> totally missing something? >> >> Mack > >I am not sure you can update a view. I think they are read only. |
|
#4
|
|||
|
|||
|
Make that, "performing a select..."
|
|
#5
|
|||
|
|||
|
Discussion in IRC - Hannes is investigating and will report findings
here. Temporary fix is to use a TnxQuery to call the StoredProc. |
|
#6
|
|||
|
|||
|
> I am not updating the view. I am simply perfoming a view. Views
> should be able to be updated as long as it can return a live result > set. Views don't return live result sets. -- Eivind Bakkestuen Nexus Database Systems |
|
#7
|
|||
|
|||
|
Mack wrote:
> Discussion in IRC - Hannes is investigating and will report findings > here. > > Temporary fix is to use a TnxQuery to call the StoredProc. Issue# 2065 -- Hannes Danzl [NexusDB Developer] Newsgroup archive at http://www.tamaracka.com/search.htm |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Access violation on windows 64bit | PtitRun | nexusdb.public.support.adoprovider | 4 | 18th October 2010 04:54 PM |
| Gateway Access Violation | Hannes Danzl[NDD] | nexusdb.public.support.portal | 2 | 28th May 2010 02:15 PM |
| Re: Access Violation at address 00000000. Read of address 00000000 | Thomas Scherer | nexusdb.public.support.adoprovider | 7 | 6th May 2009 07:03 PM |
| RFS Plugin Access Violation in nxServer Log | Bernhard Roos | nexusdb.public.support.thirdparty | 2 | 4th September 2006 04:30 PM |
| v2.02 Access Violation | David Charron | nexusdb.public.support.sql | 1 | 14th September 2005 12:30 PM |