#1  
Old 24th May 2006, 05:42 PM
Mack
 
Posts: n/a
Default Access Violation in nxServer using StoredProcedure

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  
Old 24th May 2006, 09:29 PM
David Guest
 
Posts: n/a
Default Re: Access Violation in nxServer using StoredProcedure

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  
Old 25th May 2006, 12:49 AM
Mack
 
Posts: n/a
Default Re: Access Violation in nxServer using StoredProcedure

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  
Old 25th May 2006, 02:39 AM
Mack
 
Posts: n/a
Default Re: Access Violation in nxServer using StoredProcedure

Make that, "performing a select..."

  #5  
Old 25th May 2006, 06:36 AM
Mack
 
Posts: n/a
Default Re: Access Violation in nxServer using StoredProcedure

Discussion in IRC - Hannes is investigating and will report findings
here.

Temporary fix is to use a TnxQuery to call the StoredProc.
  #6  
Old 25th May 2006, 09:32 AM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Access Violation in nxServer using StoredProcedure

> 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  
Old 25th May 2006, 10:21 AM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Access Violation in nxServer using StoredProcedure

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

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
Forum Jump

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


All times are GMT +11. The time now is 10:28 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.