Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all 997 articles
Browse latest View live

cdhdr cdpos don't have entries for Requisitions

$
0
0


Hello

 

if someone change the Requisition (delete positions) it is normally shown in CDHDR and CDPOS.

How could it be that a deletion  isn't  recorded?

I saw that in the past this was recorded. Could I do any change to record further changes?

 

Best regards

Annette Bruy


Re: cdhdr cdpos don't have entries for Requisitions

$
0
0

Hi Annette,

 

What product are you using?  This group was for Advantage Database Server and the question does not seem to make sense in that context.

 

Are you seeking help on Adaptive Server Enterprise or some other product? 

 

Edgar

Re: Future of Advantage Database Server

$
0
0

Do you still put on the Advantage Technical Summit? 

Re: Future of Advantage Database Server

$
0
0

I don't really work with the product much anymore so I'm not 100% sure, but I've not heard of any current plans for one at this time.

 

Edgar

Stored Procedure outputs

$
0
0

We want to put our queries into stored procedures for several reasons, security among them.

 

We are able to execute and get data back from simple queries that return a single column, but we do not know how to return multiple columns as a result set.

 

We have searched help files and the web to no avail.  Is there some reference that pertains to Advantage Database Server 11 and outputting data from a stored procedure?

Re: Stored Procedure outputs

$
0
0

There are two different ways to achieve this.

 

The first is defining specific output columns and then filling those columns.  There is a great example in this KB http://devzone.advantagedatabase.com/dz/content.aspx?Key=17&RefNo=090728-2196

 

The second is using the CURSOR VARYING OUTPUT parameter (note from the help file the limitations - http://devzone.advantagedatabase.com/dz/WebHelp/Advantage11.1/index.html?master_create_procedure.htm)

 

Here is an example of using the varying output  (not really sure why I had to put two end statement in this, but it complained otherwise)

 

 

CREATE PROCEDURE returnSystemTables

   (

      tablename CHAR ( 255 ),

   CURSOR VARYING OUTPUT

   )

BEGIN

 

 

IF (UPPER(_tablename) = 'TABLES') THEN

   select * from system.tables;

ELSE IF (UPPER(_tablename) = 'INDEXES') THEN

   select * from system.indexes;

--further ELSE IF....

ELSE --Nothing matching - raise error

   raise Invalid_TableName(99, _tablename);

ENDIF;

 

 

 

 

END;

 

 

END;

Re: Stored Procedure outputs

Re: cdhdr cdpos don't have entries for Requisitions

$
0
0


i found another possibility with AUT10


Using Entity Framework in VS 2013

$
0
0

Hi Edgar

 

Can you please help me with a Entity Framework issue? 

 

I want to use EF with VS 2013 and have seen your posts about support being hopefully in ADS 12, but the possibility of using usiing Registry Patches to add Advantage 11 sections from a VS 2012 installation.


I've tried to get this going on a 64 bit Windows 7 workstation which has VS 2012 but can't get the ADS Data Provider to load.  OLEDB is fine but the
Provider Install is complaining with an error 1334 that 'advantage.visualstudio.data.2' cannot be found in 'Data1.cab'.

 

Any ideas please?

 

Many thanks

 

John

Re: Using Entity Framework in VS 2013

$
0
0

I think there is something wrong with the installer.

 

One possibility is to download from the SAP Service Marketplace (support.sap.com) and search under A for SAP ADS.

Download from the Installation  and this should give you a full zip file of all ADS files at v11.10.0.10

Re: Using Entity Framework in VS 2013

$
0
0

Thanks Edgar

 

I'll see what I can find there.

 

Looking orward to ADS 12 and keeping fingers crossed it's not too far away ;o)

 

John

ADS v11.1 and Windows server2012 R2 and Hyper-V

$
0
0

Is anyone having stability problem with this setup? ADS v11.1 and Windows Server2012 R2 and Hyper-V.

 

We've migrated to this new environment this summer and two to three months later the environment has become unstable to the point that the we need to stop the Advantage Database service in order to stabilize the virtual server. We tried and move the database to a different server within the same setup and the problem arised on this other server about a month after being moved.

 

We've tried and install an older version of ADS (9.0) and this did not solve the problem. The server on which ADS is installed stays very unstable.

 

Where should we start? Anyone?

Re: Executing Store Procedure random timeouts

$
0
0

Hi Dave,

 

Regarding the first - How long does the SP take in ARC?  Does it ever take over the timeout for OLEDB (30 seconds)?

 

Maybe try adding in command.CommandTimeout=0

If you already have this, I think IIS also has a timeout.  I *think* this is the setting though it has been a while.  http://technet.microsoft.com/en-us/library/bb632464.aspx

 

 

For the JDBC error are you using the latest server/client?

9000 class errors (9000-9999) are internal Advantage errors.  In other words errors that the developers believe that should not be reachable.

 

Here is the help file for the errorAdvantage Database Server

 

If I recall there was an issue with using UDFs and earlier versions of ADS (8.1 and early 9.0) that could return this error.  If you are on something newer I would recommend opening a support case with a small re-creation and / or the server dump file (assuming one is created)

Re: Executing Store Procedure random timeouts

$
0
0

Edgar,

 

Thanks for your response.

 

When use Advantage Data Architect to execute the stored procedure that is timing out when called by our website (OLEDB), it takes between 5 and 9 ms.

 

Where would we add CommandTimeout=0?

 

As for the Java issue, adsjdbc.jar is dated 6/26/2013.

 

Could this have anything to do with how the Advantage Database server software is configured?

Re: Executing Store Procedure random timeouts

$
0
0

Your stored procedure only takes Milliseconds to finish normally?

 

 

 

How do you know it is timing out?  The default is 30 seconds so seeing it timeout I would have assumed it was a longer running one.  Are you getting the ADS error 7209 back or Run-Time error

'3712' Operation has been cancelled by the user?

 

 

 

 

 

It's been ages since I've looked at VB, but I think it should be something like this

 

 

cmd = New ADODB.Command

cmd.CommandText = "execute procedure ....."

cmd.CommandType = adCmdText

cmd.CommandTimeout = 0

rs = cmd.Execute

 

 

 

 

 

 

 

 

For the JDBC issue, it is difficult to tell by the date, but I think that date indicates likely a 10.x or 11.x driver.  The issue I was thinking of I believe was fixed in 9.x.

 

 

 

You can try the latest 11.1 version (11.10.0.20) as I think that was released in July of this year.  Maybe it will help?  If not a support incident would be a good idea (particularly if you can duplicate it)

 

 

 

Out of curiosity are you using the varying output type stored procedures?  (Not that I have anything to offer as a workaround, but the error is indicating there was a problem retrieving column informaiton and this is the only thing I can think of off the top of my head).

 

 

Edgar


Re: Executing Store Procedure random timeouts

$
0
0

Edgar,

 

 

 

We are using variable output type for these stored procedures.

 

 

 

I have looked at the error logs and I see all my Java 9105 errors, but no others.  The web site developer is reporting he is getting a database connection timeout message on random pages.  All pages are executing very similar, or the same queries.  No one else is using the database or web site except the developer.

 

 

 

One question I have regards the UDL we are using.  We are specifying a machine name rather than an IP address.  Will this cause the OLEDB driver to perform a DNS lookup each time a connection is made?

 

The web developer will add the CommandTimeOut = 0 tomorrow and we will see what happens.

 

JAVA

 

 

I have downloaded and installed the latest Java driver, but still get the same results. I believe that meta data is not coming back through the driver for stored procedures but it is for standard queries.

 

I should note that we are using FoxPro tables that have been brought into a FoxPro Database, then converted to an Advantage Database catalog.

 

 

 

Thanks again for all your assistance!

Re: Executing Store Procedure random timeouts

$
0
0

A connection timing out and executing a statement are likely two different things.  Would be good to have the developer give us the real ADS error code.

 

I would recomend using the IP:PORT in order to bypass discovery.  Using just the hostname will have to do a DSN Look up and will perform a discovery process each time.

 

Something similar to "Provider=Advantage OLE DB Provider; Data Source=\\10.10.10.10:6262\sharename"

Re: Executing Store Procedure random timeouts

$
0
0

Edgar,

 

I noticed that the following properties are set to false in the Java Driver (11.1.0.20) after I connect to our database:

 

  • Schemas in procedure calls
  • Catalogs in procedure calls

 

Is there a way to override these properties?

Re: Executing Store Procedure random timeouts

$
0
0

Edgar,

 

We are specifying the port, and will change to using the ip address to see if that helps.

 

I have also talked to the developer and asked for any error codes that he might be getting back.

 

Thanks.

Re: Executing Store Procedure random timeouts

$
0
0

I don't think you can.  ADS does not use schemas or catalogs.

Viewing all 997 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>