Re: Connection issues with Windows Server 2016

2017-05-17 Thread Thomas Meyer
cess under Windows will help. With kind regards Thomas > We are using the Derby in network server mode. > It is configured as datasource in WildFly 9.0.1 > Our application runs on this WildFly and connecting to the Derby via > Hibernate. > > The setup with Windows Server 2012

Re: SQL help needed

2016-11-27 Thread Thomas Meyer
;what I want? > >TIA, Hi, Can this problem be solved by an correlating sub select?! Maybe something like this: Select * from x where not exists ( select 1 from y where x.a = y.a and x.b = y.b ) Or like your first SQL but convert to string and concatenate that would work but probably very slow as no index could be used. With kind regards Thomas

EmbeddedDriver and db.lck file

2015-06-17 Thread Thomas Meyer
in a ServletListener.contextDestroyed() method? With kind regards Thomas

Re: XSDB6 Another instance of Derby may have already booted

2014-10-26 Thread Thomas Hill
Many Thanks Rick - deleting the ".lck" files in the root directory solved the issue.

XSDB6 Another instance of Derby may have already booted

2014-10-24 Thread Thomas Hill
Hi, I am getting below error even after the derby server and the server machine had been shutdown and brought up again. Might this indicate the data base is corrupt? Is ther any way to further diagnose what is going on? Thanks java.util.concurrent.ExecutionException: java.lang.RuntimeException:

Re: placement of derby.log

2013-06-10 Thread Thomas
Thomas writes: > > > Hi, > > is there any way to tell Derby where to store the derby.log file? > (note: I am not referring to the database log file here, but to the file > into which protocoll messages are logged). > > If not, what is the logic used to det

placement of derby.log

2013-06-10 Thread Thomas
Hi, is there any way to tell Derby where to store the derby.log file? (note: I am not referring to the database log file here, but to the file into which protocoll messages are logged). If not, what is the logic used to determine where this is stored? Thanks

Re: Native authentication and password expiry date

2013-05-20 Thread Thomas
Rick Hillegas writes: I am running the 10.9.1.0 server using the basic security manager with the default security policy settings. Trying to inspect the system property settings from a stored procedure which includes using java.lang.System.getProperty() I am getting: Error: The exception 'java.

error when selecting from sys.sysusers

2013-05-09 Thread Thomas
27; column. SQLState: 4251E ErrorCode: -1 But I am not trying to select the password column!? Thanks Thomas

Re: Native authentication and password expiry date

2013-05-09 Thread Thomas
f a system property? I have not found a system procedure for this. Thanks for looking into this again. Kind regards Thomas

Native authentication and password expiry date

2013-05-09 Thread Thomas
Hi, is there a way to find out when the password of the user logged in will expire so an application can display a message like "Your password will expire in x days. Do you want to change it now?" Thanks

Re: SSL peerAuthentication

2013-01-22 Thread Thomas Hill
Dag, I am not using CA certs, but self-signed certificates. Would you mind having a look at my server truststore file if I email it to you? Kind regards Thomas

Re: SSL peerAuthentication

2013-01-12 Thread Thomas Hill
Ups - had attached this answer to the wrong mail tread first. Thanks. Let me know if you want me to share with you the keystores used or the scripts run for starting the server/ij.

Re: Create embedded, run via network server: what's databaseName?

2013-01-11 Thread Thomas Hill
Thanks. Let me know if you want me to share with you the keystores used or the scripts run for starting the server/ij.

Re: SSL peerAuthentication

2013-01-10 Thread Thomas Hill
yes, I did check the docs. My serverTrustStore was populated as described in the manual, i.e. "Install a client certificate in the server's trust store: keytool -import -alias aDerbyClient -file aClient.cert -keystore serverTrustStore.key" As said my expectation was installing just the c

SSL peerAuthentication

2013-01-09 Thread Thomas Hill
Hi, currently trying to switch from basic authentication to peer Authentication, but having trouble with understanding serverTrustStore content. Have gone through the following scenarios: 1) in my current set-up I am starting the network server and the client(s) with basic authentication - this wo

best practice - SQL Routines - return value handling

2012-11-27 Thread Thomas Hill
favoured over the other when having Oracle portability in mind? Thanks a lot for sharing your experience and advise. Kind regards Thomas

export from systables

2012-10-26 Thread Thomas Hill
Hi, I am trying to export a comma separated list from the syscatalog tables to a file which holds the following information: schemaname, tablename, columnname, columdatatype and javadatatype. e.g. appl, mytable, column2, char(1), java.lang.String appl, mytable, column2, integer, java.lang.Integer

Re: trigger calling a procedure

2012-10-24 Thread Thomas Hill
> Hi Thomas, > > I think you'd need to add a REFERENCING clause to the trigger definition > and pass in the new value as an argument to the procedure. Something > like: > > CREATE TRIGGER "TR_XY" > AFTER INSERT > ON "TBL_XY&quo

Re: trigger calling a procedure

2012-10-23 Thread Thomas Hill
Rick Hillegas writes: > > On 10/21/12 11:45 PM, Thomas Hill wrote: > > CREATE TRIGGER "TR_XY" > >AFTER INSERT > >ON "TBL_XY" > >FOR EACH ROW > >CALL PROCEDURE "SP_xy"('xyz', 0); > Hi Thomas, >

trigger calling a procedure

2012-10-21 Thread Thomas Hill
Hello, the Wiki mentions a trigger can also call a procedure rather than scripting the SQL statement on the create trigger statement. The documentation as far as I can see does not give an example of that. Would this be the right syntax? CREATE TRIGGER "TR_XY" AFTER INSERT ON "TBL_XY" FOR E

NATIVE authentication

2012-08-20 Thread Thomas Hill
at shows how to create an application database which makes use of native authentication? Thanks a lot in advance Thomas

Returning java.sql.ResultSets from Java procedures

2012-03-04 Thread Thomas Hill
Hi, can someone please share an example how the Client side application code to call procedure looks like when I want my stored procedure to return TWO resultsets? The derby Wiki (extract see below) says 'WORK IN PROGRESS' in the section where documentation on this had been started. CallableStatem

Re: New developer, need a little help with a subquery

2011-07-26 Thread Thomas Hill
if I understand correctly you need a 'group by' in your query; so like SELECT day("dtmDateCompleted") as "Day", "A"."strName" AS "Category", COUNT(*) FROM "tblAssetCategory" "AC" INNER JOIN "tblAsset" "A" ON "AC"."id" = "A"."intCategoryID" INNER JOIN "tblWorkOrd

Re: metadata / getClientInfo()

2011-07-25 Thread Thomas Hill
conn.getMetaData().getUserName() seems to be exactly what I have been looking for Thanks for this and also all the feedback I have received on my initial question Regards Thomas

Re: metadata / getClientInfo()

2011-07-25 Thread Thomas Hill
27; tab that I would suspect they are getting via such mechanisms. In the derby docs I am afraid one hardly finds details on the subject. Thanks Thomas

metadata / getClientInfo()

2011-07-23 Thread Thomas Hill
s for your support Thomas

Re: JDBC escape syntax

2011-07-22 Thread Thomas Hill
Thanks Knut for pointing me in the right direction.

JDBC escape syntax

2011-07-22 Thread Thomas Hill
t; varchar(128)) LANGUAGE JAVA PARAMETER STYLE JAVA EXTERNAL SECURITY DEFINER MODIFIES SQL DATA EXTERNAL NAME '...SP_getRole' ; HOWEVER when running this now row is returned! I also tried " WHERE CURRENT_ROLE='\\\"DB_READER\\\"'"; but this also did not lead to success. Any hints appreciated. Thanks Thomas

Derby Issue

2011-07-07 Thread Remya Thomas
Hi Team, We are using derby-10.4.1.3 in our application. Recently, we faced an issue in using this derby database with an exception java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested I would like to know under what scenario this exception could occur

Re: Use variables in SQL script?

2011-06-27 Thread Thomas
David, I am afraid Derby doesn't implement variables - I had been looking for this myself also some time back when writing Derby scripts for test data creation/manipulation. I finally ended up writing small Java programs where needed instead of or on top of just scripts. Since a couple of days I a

Re: Inaccuracies in H2's claims: Autocounter/Sequqnce-Numbers

2011-05-25 Thread Thomas Mueller
ated, by someone else working independently." I would really like to reproduce the results, to understand what you have tested exactly, and to find out how fast H2 is in those tests. > I would > still encourage people to do their own benchmarking when making > decisions on performance. Me too :-) Regards, Thomas

Re: Inaccuracies in H2's claims: Autocounter/Sequqnce-Numbers

2011-05-25 Thread Thomas Mueller
ny results. Remove the benchmark results from your web site or we will sue you." Unfortunately I don't have this email any more :-) With open source, you have open mailing lists and you can discuss it. Also the licenses tend to be more liberal. Regards, Thomas

Re: problems after "could not listen on port xxx on host 0.0.0.0" / corrupting data base?

2011-02-24 Thread Thomas Hill
okay, the address already in use being due to too quick request attempts might be an explanation. I have in the meantime found out that, although the address already in use error is given and the log does not contain the normal 'server started and ready to accept connections' statements ==> the ser

Re: problems after "could not listen on port xxx on host 0.0.0.0" / corrupting data base?

2011-02-23 Thread Thomas Hill
Hi Morten, thanks for your reply "on the address already in user issue". The Network Server is hosted on the internet and my provider tells me that nothing else is using the port and their tests would indicate that - the normal (Linux) start/stop scripts coming with Derby are being used - when the

problems after "could not listen on port xxx on host 0.0.0.0" / corrupting data base?

2011-02-23 Thread Thomas Hill
way to get the database up and running again. Even after a complete shutdown and restart of the server I continue to get the 'another instance...' error. So I am not sure if my database might have been corrupted?? Any way to find out what is going on? Thanks Thomas Wed Feb 23 20:2

Is the Network Server now started or not?

2011-02-20 Thread Thomas Hill
>From time to time I am running into the following situation with my hosted Derby Network Server (in the hosted environment the Tomcat start (/stop) script is used to also start (/stop) Derby) hwne attempting to start the server: Sun Feb 20 18:25:11 CET 2011 : Security manager installed using the

Re: Trying to migrate to LDAP (but getting Error 08004)

2011-01-19 Thread Thomas
> This means that a) you are running with the Java security manager > enabled, and b) you need to add a missing SocketPermission to the > derby.jar codebare in a policy file, cf. > ad a) yes, the security manager enabled is the default java security manager which is what is confirmed in derby.log

Re: Trying to migrate to LDAP (but getting Error 08004)

2011-01-18 Thread Thomas
I have now tested the following two scenarios in conjunction with the network driver: 1) using system-wide properties rather than data-base level properties 2) as you suggested, supply the properties as command line parameters ad 1) when trying to connect using IJ I continue to receive error 0800

Re: Trying to migrate to LDAP (but getting Error 08004)

2011-01-17 Thread Thomas
n you please advise on next steps?, i.e. should I create a JIRA issue immediately or will/should someone from the development try to reproduce first? Regards Thomas

Trying to migrate to LDAP (but getting Error 08004)

2011-01-16 Thread Thomas
Thanks for reading my post. Any help to get Derby work with LDAP would be greatly appreciated. What I am trying to achieve and what I have done so far: I would like to prepare my system for production use and migrate off the BUILTIN authentication system to use LDAP as external directory servic

Is it possible to run multiple network servers in parallel?

2011-01-09 Thread Thomas
Hi, is it possible to run for example a network server in version 10.6 in parallel to running the current version 10.7 on one and the same (server) machine? If so, how would a client program like IJ know to which server to connect to? Thanks

Re: Problem solved

2011-01-02 Thread Thomas
I will try to summarise my experiences in the wiki once I have completed my full round trip of what I am/was trying to achieve: 1) have a JAVA provider (in Germany) host a Derby Network Server for me - done 2) have them run the Derby Server using SSL encryption and peer authentication - done 3) be

Problem solved

2010-12-30 Thread Thomas
After many hours of further investigation I have been able to overcome all road blocks and now successfully use SSL certificates (created and signed using openSSL and converted in jks keystores using keytool) and peer Authentication between server and client. I wish though the certificate expiry da

No one able to help?

2010-12-21 Thread Thomas
Hi, I am stuck with this problem and would appreciate any help. Thanks Thomas

No available certificate or key corresponds to the SSL cipher suites which are enabled

2010-12-18 Thread Thomas
MD5: 8D:D4:44:B6:37:EC:51:CD:25:85:E8:F1:0A:A9:30:2D SHA1: E7:04:DB:FC:DA:16:FE:46:88:56:C5:0B:65:D5:0F:DF:AC:0E:A1:D7 Signature algorithm name: SHA1withRSA Version: 3 Any help would be greatly appreciated. Thanks Thomas

Re: ERROR 08004: Connection refused : Invalid authentication.

2010-11-28 Thread Thomas
Sonny Laskar writes: > > > Dear All,I am new to Derby.I have forgotten the username/password set for connecting to my derby database.Now when I tried to connect , i get the invalid authentication error (ERROR 08004: Connection refused : Invalid authentication.)Please let me know if I can reset

how do I make the pieces in this puzzle fit?

2010-11-28 Thread Thomas
re? can I still use self-signed certificates? do I need a specific algorithm / type of certificate? (RSA instead of DES)? Thanks for your support Thomas

Language of error message

2010-11-27 Thread Thomas
Hi, can someone please advise what is determining the language which will be seen in error messages? Is this depend on the locale of the machine? I am currently seeing messages in german, but would like to switch to english, but don't know how to do that. Thanks in advance Thomas

IJ scipts - stop execution and rollback in case of error

2010-10-04 Thread Thomas
Hi, is there a way to make scripts stop (and the transaction rollbacked) when an error is thrown rather than IJ just continuing the execution with the next statement? Thanks

Reusable components

2010-09-30 Thread Thomas
When implementing the data model for my application using Derby and coding some stored procedures in JAVA over the past months I have asked myself a couple of times along the way what the best approach to fulfil some 'standard' requirements would be - general requirements which I would expect most

SSL - certificate expiry date ignored

2010-08-05 Thread Thomas
Hi, on 10th July I implemented SSL encryption between my network server and its clients. The certificates were self-generated using the keytool utility. I am starting the server requesting peer authentication. I am starting IJ with proper references to my client keystore. When trying to connect to

Re: using set role in a stored procedure / Error 25001

2010-07-22 Thread Thomas
when calling commit I am no longer getting error 25001. Now I have a different problem: the lifetime of the set role seems to be limited to the stored procedure itself - after returning to the main program my role is NULL again. I have double-checked using the debugger and confirmed that the set

Re: using set role in a stored procedure / Error 25001

2010-07-22 Thread Thomas
The procedure is the first call to the data base after opening the connection, so there is no transaction open/pending from outside this procedure. Within the procedure itself however I need to query the catalog to see if a role is already set and only if this is not the case set the role as ne

using set role in a stored procedure / Error 25001

2010-07-20 Thread Thomas
Hi, can someone please advise if it is possible to execute a 'set role' command within a stored procedure? My code runs fine when being part of the java program, but throws "ERROR 25001: Invalid transaction state: active SQL transaction." when put inside a java stored procedure. Some documentation

RE: how to include derby.jar in my .class file?

2010-05-09 Thread Thomas Taylor
I've used launch4j (http://sourceforge.net/projects/launch4j/) to package multiple JARs into a single Windows executable. Or, you can un-JAR derby.jar (jar -xf derby.jar), add your class files to the same directories, and re-JAR everything into one. Regards, Thomas Taylor -Ori

closed - improvement request raised

2010-05-06 Thread Thomas
I have now entered an improvement request in JIRA - or to be more precise I have added to and voted for existing request derby-4551.

changing a user password

2010-05-05 Thread Thomas
Hi, can someone please advise how the password of a user can be changed? My database requires authentication, is using the BUILTIN authentication provider and I have defined users as database properties using the system procedure CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.xxx,... I

RE: Problems to use Derby Network Server

2010-05-04 Thread Thomas J. Taylor
confirm that with the firewall turned off you can connect to the derby network server. FYI. you will normally see a “Connection Timeout” message when either the destination (server) IP address is wrong, or the network server has not started. Best regards, Thomas Taylor From: Fabricio

Re: SQL authorisation and routine permissions

2010-05-03 Thread Thomas
Do I understand correctly that, if my procedures had been defined by the database owner (which they were in my case), then additional grants would not be required => would Derby support running routines with definer's privileges? If so, I would file an improvement request. For the time being, is t

SQL authorisation and routine permissions

2010-05-03 Thread Thomas
Hi, having set-up SQL authorisation I would like to grant data modification rights (insert, update, delete) to stored procedures only. I was assuming that granting executing rights on a routine using GRANT EXECUTE ON PROCEDURE to appl_user (with appl_user being a role) would automatically grant th

Re: SQLAuthorisation and role permissions

2010-04-22 Thread Thomas
Thanks a lot for the help. Now everything is working fine. Regards Thomas

Re: SQLAuthorisation and role permissions

2010-04-21 Thread Thomas
here is the script which can be executed to reproduce the problem -- create an embedded database that is encrypted and -- specify user 'derby' when initially creating the database so this user -- will be or can become the database owner connect 'jdbc:derby:SecuredDB;create=true; dataEncryption=

SQLAuthorisation and role permissions

2010-04-21 Thread Thomas
n explicitely granting select permission to the user, then I can select data as expected - but obviously I want to avoid the overhead of needing to grant permissions on objects to individual users, but only to roles and then maintain user rights via role assignments. Thanks Thomas

Re: debugging java stored procedures

2010-03-11 Thread Thomas
Thomas writes: can someone please confirm that stepping through the Java code of a stored procedure is indeed possible? no sure why there is no feedback - is it trivial and must be me / my specific set-up why it doesn't work for me? or am I trying to do something that is not possible?

debugging java stored procedures

2010-03-08 Thread Thomas
Hi, I need to come back to this subject after many hours of trying to get this to run over the weekend I have followed Bryan's advice to my previous post (some weeks ago) and moved to an embedded database scenario as suggested as this was supposed to remove the complexity involved when try

data base (server) timezone

2010-03-02 Thread Thomas
Hi, as Derby currently does not support timezone aware date/time data types, my application that can run in local/embedded data base mode but also in networked/network server mode needs to convert input dates into UTC before storing (and back to local timezone if wanted when displaying stored in

Re: common use case for data base programming not possible in derby?

2010-02-16 Thread Thomas
sorry for me using the 'post' action instead of the 'follow-up' action - I wanted to put this as a last remark on my previous / related query

common use case for data base programming not possible in derby?

2010-02-16 Thread Thomas
Okay thanks. The approach should work for me! Note: although I would have preferred to be able to accept data supplied for the "normal" columns (e.g. payload) and silently have the system correct the "tech" columns (e.g. createdBy/On, updatedBy/On) in case needed by overwriting user input rather

common use case for data base programming not possible in derby?

2010-02-14 Thread Thomas
CURRENT_USER within the trigger function). Any suggestions? Is there really no way this can be achieved in Derby? (other than maybe putting the tech cols on a separate table and joining the two base tables in a view so that at least in read operations it would look like the tech cols are held on the same table?) Thanks Thomas

SOLVED: FOR UPDATE is not permitted in this type of statement

2010-01-27 Thread Thomas
mistake was accessing rte."IDs" which is a view instead of "TBL_IDs" which is the base table. Also rewrote procedure to use updatable resultset rather separate select for update and update statement.

FOR UPDATE is not permitted in this type of statement

2010-01-27 Thread Thomas
Hi, I am trying to execute a select for update statement and receive the error message shown on the subject line although I think I had respected all requirements for such a statement. Here is the Java code of the stored procedure: == public static void

IJ scripting (variables in IJ?)

2010-01-23 Thread Thomas
Hi, I would like to execute a series of statements in IJ where the value returned by the function call executed in one statement is passed as a parameter to the next statement calling another procedure. Example: CALL "SF_addClient"('lastname', 'firstname') ==> this function creates a new client

Re: debugging java stored procedures

2010-01-18 Thread Thomas
Hi, any tipps from anyone which would help to debug java stored procedures? Not being able/knowing how to debug the code executed by the database using the eclipse debugger, I have included System.out.println statements into the procedures, but have no idea where these end up when running again

debugging java stored procedures

2010-01-15 Thread Thomas
Hi, I was wondering whether it would be possible to debug java stored procedures loaded into the database in a jar file using the eclipse debugger. Debugging of my java stub program works fine, but when trying to step into the callable statement by which the java procedure call is envoked, eclips

Re: *Unrecognized* procedures

2010-01-14 Thread Thomas
The problem was the numbering of parameters in the registerOutParameter and the setxxx Statement: instead of CallableStatement cs = conn.prepareCall("{ call APPL.\"myFunction\"(?, ?)"); cs.registerOutParameter(1, java.sql.Types.VARCHAR); cs.setString(1, parm1); cs.setString(2, parm2); CallableSta

*Unrecognized* procedures

2010-01-14 Thread Thomas
Hello, can't find the reason for the following issue: (Derby 10.5.3.0 network server running on a Linux server, the java function has been loaded into the database as part of a jar file, server running without security policy). When trying to call a procedure from a java program I am getting erro

Eclipse plugins - Derby Nature not available

2010-01-06 Thread Thomas
Hi, I am having problems wanting to migrate from eclipse 3.4 ganymede (under which I had successfully used the plugins) to eclipse 3.5 galileo. A fresh install of the current eclipse version has created the folder structure: 'C:\eclipse-reporting-galileo-SR1-win32 v3.5_2009' (root folder I define

ORDER BY in query when defining a VIEW

2009-12-24 Thread Thomas Hill
Hi, can anyone please confirm whether an order by clause is supported in derby 10.5.3 or not? The manuals contain no reference to this and reading through Jira I was under the impression that this should (now) be possible. However when trying to create a view using a select query which has an orde

Re: Managing the Derby Network Server remotely by using the servlet interface

2009-11-03 Thread Thomas
Bryan you are right - I typed the wrong port in my write up; it should have been what you stated and documented in the wiki: ==> http://localhost:8080/derby/derbynet ? Regards Thomas

Re: Managing the Derby Network Server remotely by using the servlet interface

2009-11-03 Thread Thomas Hill
d stored in a separate location and not within the tomcat hierarchy. Hope this write up helps people looking for some guidance (beyond what is documented in the admin guide) on topic. Regards Thomas

Managing the Derby Network Server remotely by using the servlet interface

2009-11-02 Thread Thomas Hill
0/derby/, I am getting http 404 the requested resource is not available. 10) when typing http://localhost:8180/derby/derbynet into the browser instead I am getting HTTP 500 'Wrapper can not find servlet org.apache.drda.NetServlet or a class it depends on' Can someone please advise what is still needed or what I do wrong? Thanks Thomas

ONE solution found: ERROR 42X51 class not found

2009-10-25 Thread Thomas Hill
ystem. Regards Thomas

Re: ERROR 42X51 class not found

2009-10-25 Thread Thomas Hill
1,1,1);' ==> when passing wrong data types I received 'VARCHAR' can not hold types 'INTEGER' 'CALL derby."TF_Clients_AI2"();' ==> derby."TF_Clients_AI2" is not a recognised function or procedure. Still confusing and I wonder what the problem will have been once it was solved (if it ever will). Thomas

Re: ERROR 42X51 class not found

2009-10-24 Thread Thomas Hill
derby.Functions is a class and TF_Clients_AI2 a method. the java code reads: package derbyPk; public class Functions { public static void TF_Clients_AI2(int iRowID, String vcClientID, String vcClientName) throws SQLException { ... } } As said all of this worked fine when running the

Re: ERROR 42X51 class not found

2009-10-24 Thread Thomas Hill
lients_AI2 which is defined as public. Thanks for your help Thomas

Re: ERROR 42X51 class not found

2009-10-24 Thread Thomas Hill
Hi, what I have done now is 1) opened up a root terminal session on the server 2) checked CLASSPATH with echo $CLASSPATH command -> emtpy 3) defined the CLASSPATH=/var/lib/derby/db-derby-10.5.3.0-bin/lib/ 4) exported the CLASSPATH 5) checked CLASSPATH setting again and now the path was returned 6)

ERROR 42X51 class not found

2009-10-24 Thread Thomas Hill
me\eclipse-ganymede-SR1\eclipse\plugins\ org.apache.derby.core_10.5.1\derbytools.jar OS name: Windows XP OS architecture: x86 OS version: 5.1 Java user name: Thomas Java user home: C:\Dokumente und Einstellungen\Thomas Java user dir: C:\Daten\eclipse ganymede\derby java.specification.

Re: after insert trigger calling a procedure - how can I retrieve NEW values inside the procedure?

2009-08-24 Thread Thomas Hill
om after the update coming fom the second trigger - whereas I would have only had one entry in case I could have overwritten transition variable content in the first place with whatever would have been stored there prior to this being written back to the data base. Regards Thomas

Re: after insert trigger calling a procedure - how can I retrieve NEW values inside the procedure?

2009-08-24 Thread Thomas Hill
om after the update coming fom the second trigger - whereas I would have only had one entry in case I could have overwritten transition variable content in the first place with whatever would have been stored there prior to this being written back to the data base. Regards Thomas

Re: after insert trigger calling a procedure - how can I retrieve NEW values inside the procedure?

2009-08-20 Thread Thomas Hill
Hi, passing the values worked fine, so I can now log the new values into my audit log table. Do you know if it would be possible to CHANGE the new values as well? Background: Let's say my Client table has a column 'CreatedBy' in which I want to store the role of the user that inserted the row. F

Re: after insert trigger calling a procedure - how can I retrieve NEW values inside the procedure?

2009-08-20 Thread Thomas Hill
Hi, thanks for your reply. the trigger needs to execute multiple SQL statement, which is why I am using an external procedure. I will try passing in the values as you suggest. Regards Thomas

Re: trigger calling a procedure

2009-08-20 Thread Thomas Hill
Hi, after having closed down Eclipse going in again and rebuilding from scratch the trigger could be created and actually worked for the first time without throwing the syntax error. Strange, as I am not aware I have changed anything. So although not fully understanding what is / was going on here

after insert trigger calling a procedure - how can I retrieve NEW values inside the procedure?

2009-08-20 Thread Thomas Hill
Hi, have created the following procedure and trigger: CREATE PROCEDURE "TF_ClientsAI"() LANGUAGE JAVA PARAMETER STYLE JAVA MODIFIES SQL DATA EXTERNAL NAME 'derbyPk.Functions.TF_ClientsAI'; -- DROP TRIGGER "TR_ClientsAI"; CREATE TRIGGER "TR_ClientsAI" AFTER INSERT ON rte."Clients" REFEREN

trigger calling a procedure

2009-08-20 Thread Thomas Hill
Hi, I am trying to use an after insert trigger defined on a table to log values of each row that gets inserted in a audit trail table. The error I am getting which I do not understand / know how to resolve is a syntax error: ERROR 38000: The exception 'java.sql.SQLException: Syntax error: Encou

Re: creating a SQL function in derby

2009-08-15 Thread Thomas Hill
Finally spotted the problem. The method definition should have read: public static void spGetNextID( int iNextVal[], String vcIDName ) (not public static int spGetNextID...) and the line trying to return the integer at the end return iNextVal[0]; needed to be removed. Now it works

Re: creating a SQL function in derby

2009-08-14 Thread Thomas Hill
Throwable e) { System.out.println(e); } } } Seems I need to call the procedure fully qualified as 'DERBY.spGetNextID' as otherwise I am getting an error that no procedure or funtion was found. Hope you can easily spot what I am unable to find. Regards Thomas

Re: creating a SQL function in derby

2009-08-13 Thread Thomas Hill
rby manual which is given for 'contains data' honestly doesn't make sense to me) and when using a procedure I could update data, but with a procedure not return any value. However I need to update data and return the new value so that I know which ID has been assigned. Can you help with the solution of this please? Thanks again Thomas

RE: How would you implement a record-level versioning system with Derby and Java?

2009-07-09 Thread Thomas J. Taylor
for Derby, so haven't tried a similar approach here. Best Regards, Thomas Taylor -Original Message- From: Alessandro Bottoni [mailto:alexbott...@yahoo.it] Sent: Thursday, July 09, 2009 10:48 AM To: Derby Discussion Subject: Re: How would you implement a record-level versioning

RE: Derby 10.1 -> 10.2 upgrade issue

2009-03-06 Thread Thomas J. Taylor
o use ORDINAL_POSITION to recreate the sequencing of columns within the index. If not, you might try looking at the thread/link that Rick Hillegas sent (http://www.nabble.com/How-can-I-fetch-constraint-attribute-on-Column-Level- from-SYS-Tables---td19554573.html#a19554573) Thomas INFOTECH Soft

  1   2   3   >