Posted By:
David_Saintloth
Posted On:
Monday, April 29, 2002 10:19 PM
I am writing an application that will self build tables on Sql 2000. I am able to connect and create and drop tables but when I try inserting data and then dropping the table afterward I get the error listed above. What am I doing wrong? I found that when I do a TRUNCATE before attempting to DROP, it works but **only** from a SQL Query Tool window and NOT through a JDBC call from the app. for the exact same TRUNCATE command. I also get the same error when trying to INSERT after INSERT from the app. which makes using the dbase entirely useless since I'll need to do multiple INSERTS,UPDATES AND DELETES. As before, the same INSERT works perfectly from the Sql Query
More>>
I am writing an application that will self build tables on Sql 2000.
I am able to connect and create and drop
tables but when I try inserting data and then dropping
the table afterward I get the error listed
above. What am I doing wrong? I found that when I do a
TRUNCATE before attempting to DROP, it works but
**only** from a SQL Query Tool window and NOT through
a JDBC call from the app. for the exact same TRUNCATE
command. I also get the same error
when trying to INSERT after INSERT from the app. which
makes using the dbase entirely useless since I'll need to
do multiple INSERTS,UPDATES AND DELETES. As before,
the same INSERT works perfectly from the Sql Query
Tool Window however.
Any Idea why this is happening? I tried doing an
explicit "commit" following each attempt and that doesn't
work. There is something wierd going on here, surely
someone has figured out how to do consecutive
INSERTS,UPDATES AND DELETES via JDBC and connecting to MS
SQL 2000 ??? I am using the jdbcodbc bridge driver if
that helps any.
Any help provided would be much appreciated.
Regards,
Dsl
<<Less