AW: [Zope-DB] ZADODA

juergen.hauptmann juergen.hauptmann at imc-krems.ac.at
Thu Oct 21 07:40:40 EDT 2004


I use MS SQL Server 2000.

I can now read the last inserted ID with: SELECT @@IDENTITY as lastid

But now I cannot do any insert Statement I get the following error:

Error, pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'ADODB.Recordset', 'Operation is not allowed when the object is closed.', 'C:\\WINDOWS\\HELP\\ADO270.CHM', 1240653, -2146824584), None)

Greets
Jürgen
-----Ursprüngliche Nachricht-----
Von: Charlie Clark [mailto:charlie at egenix.com] 
Gesendet: Donnerstag, 21. Oktober 2004 12:53
An: juergen.hauptmann
Cc: zope-db at zope.org
Betreff: AW: [Zope-DB] ZADODA


On 2004-10-21 at 12:50:19 [+0200], juergen.hauptmann 
<juergen.hauptmann at imc-krems.ac.at> wrote:
> I use ZADODA when I call the last insert ID with
> 
> SELECT @@IDENTITY
> 
> I get an Sytnax error....
 
> Probably yes. Check the documentation of your RDBMS.

Please keep the discussion on list.

Where are you getting the syntax error? From Zope or your database? Zope 
normally gives quite helpful tracebacks. What kind of RDBMS are you using? 
Have you tried the same statement directly in Python?

Charlie
-- 
Charlie Clark
eGenix.com

Professional Python Services directly from the Source
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

Diese Nachricht erhalten Sie von einem IMC Mitarbeiter/Vortragenden. Allfällige angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verständigen und die Information zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei Übermittlung besteht keine Haftung. 

This message is being transmitted by an IMC employee/lecturer. Any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission. 
Diese Nachricht erhalten Sie von einem Studierenden der IMC Fachhochschule Krems. Für Übermittlungsfehler oder sonstige Irrtümer bei Übermittlung besteht keine Haftung seitens der IMC Fachhochschule Krems.

This message is being transmitted by an IMC student. The sender does not accept liability for any errors or omissions as a result of the transmission. 




More information about the Zope-DB mailing list