473,805 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs.net pro*c insert failed

Hello,
we have Problems to recompile a old Version of a Serviceprogramm
written in Visaul C++ 6. Now we have a 9.2.0.1.0 DB with a VS.NET
2003.
All we wanna do is call a Procedure with an insert into a Table.
like this:
EXEC SQL EXECUTE
BEGIN
SP_TRACER(:cPro cName,
:TraceFehlerNr, :TraceLevelNr,
:cTraceText, :cDescription, TRUE);
commit;

exception
when others then
rollback;
:ErrStatus := SQLCODE;
:cFehler := substr(SQLERRM, 1,80);

END;
END-EXEC;

the DB trace looks like that:
begin LOGIS . SP_TRACERC ( :cProcName , :TraceFehlerNr , :TraceLevelNr
,
:cTraceText , :cDescription , 1 ) ; commit ; exception when others
then
rollback ; :ErrStatus := SQLCODE ; :cFehler := substr ( SQLERRM , 1
, 80 )
; END ;
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
----------
Parse 11 0.00 0.00 0 0 0
0
Execute 0 0.00 0.00 0 0 0
0
Fetch 0 0.00 0.00 0 0 0
0
------- ------ -------- ---------- ---------- ---------- ----------
----------
total 11 0.00 0.00 0 0 0
0

no execute!
We have tried to commit inside the Procedure but nothing else. No
Error but no insert!

We have tried a direct insert nothing happens.

Any Idea?

greatings Oliver
Jul 19 '05 #1
0 1891

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5442
by: Anoop | last post by:
Hi, I have a table that contains a huge number of fields, out of which 3 are VARCHAR2(2000). I am using a Orcale 9i with UTF8 char set. The data I am trying to insert is ASCII (English). When I try using a Pro*C program to insert the data, it fails, giving the error ORA-01461. My data is not longer than 2000 char. It neither contains any multibyte character. Why does this happen?
12
9532
by: wenmang | last post by:
Hi, I am using following Oracle Proc-C compiler: Pro*C/C++: Release 8.1.7.0.0 - Production on Thu Jun 15 15:57:32 2006 (c) Copyright 2000 Oracle Corporation. All rights reserved. I like to use "long long" integer type(64 bit), but it seems that Oracle doesn't like it after execution, and giving me error code -1460, any idea about this? thx
9
3705
by: anachronic_individual | last post by:
Hi all, Is there a standard library function to insert an array of characters at a particular point in a text stream without overwriting the existing content, such that the following data in appropriately moved further down? From a cursory search of the libc documentation I can't find such a function. Will I have to write it myself? Thanks.
2
4817
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and sql server is my backend server. This error occured whenever i step through and when it reaches rs.update it jux hangs down there and thereafter it shwn the aforementioned error. I am using the RecordSet properties to add the values. Can I use...
0
1913
by: mithubabu1970 | last post by:
Hello Friends.. I am working on some Pro-C program using Dynamic SQL. I am fetching a set of values and storing those in an host variable array of datatype long. The fetching into the array is working fine. But when I use the in correlated subquery having "NOT IN" and "IN" clause, it behaves differently. For "IN" clasue, the array works fine, but for "NOT IN" clause, it does not work. For example, I have created the following small piece of...
2
1563
by: DavidOwens | last post by:
<form action="do.php" method="post"> <?php /* create table users (id int, staffid int, region varchar(20), firstname varchar(20), surname varchar(20)); insert into users values(1,1,'region1','John', 'Doe'),(2,2,'region1','Pete', 'Mackay'); create table stores (name varchar(10)); insert into stores values('Name1'),('Name2'),('Name3'),('Name4'),('Na me5'),('Name6'); */ $con = mysql_connect("localhost","root","password");
0
1235
by: keshabtsk | last post by:
I have a problem that to create an application which demands to transfer tthe data from Visual Fox Pro 6 to Oracle 8i. Oracle 8i is hosted on Windows 2003 Server. The application is required to be developed using Visual Basic 6. The Client from where the application is to be hosted is an Windows XP Machine where Developer 2000 Froms and reports are installed. I have installed the Oracle Client in the Cleint Machine. Visual Basic is connecting to...
7
2423
ilikesuresh
by: ilikesuresh | last post by:
Hi I have written the following program in pro C #include<sqlca.h> #include<oraca.h> #include<string.h> #include<stdio.h> #include<stdlib.h> #include<unistd.h> EXEC ORACLE OPTION (ORACA=YES);
0
369
by: Oliver G | last post by:
Hello, we have Problems to recompile a old Version of a Serviceprogramm written in Visaul C++ 6. Now we have a 9.2.0.1.0 DB with a VS.NET 2003. All we wanna do is call a Procedure with an insert into a Table. like this: EXEC SQL EXECUTE BEGIN SP_TRACER(:cProcName, :TraceFehlerNr, :TraceLevelNr,
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10613
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.