473,699 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ignore Some Errors

In my stored procedure I'm calling a buggy and flaky stored procedure
that comes from a third party. When I run my stored proceure from QA,
I'm getting a whole buch of errors raised inside the third party one.
Is there any way I could just ignore them, so that if I run my SP from
QA, only errors from my code, if any, show up?

TIA

Jan 24 '06 #1
2 1958
Assuming that you are working on SQL2k (please post the version you are
using in the next post) there are some errors which can be caught. For
more information about error handling read further in:
http://www.aspfaq.com/show.asp?id=2470

HTH, Jens Suessmeyer.

Jan 25 '06 #2
Ford Desperado (fo************ @yahoo.com) writes:
In my stored procedure I'm calling a buggy and flaky stored procedure
that comes from a third party. When I run my stored proceure from QA,
I'm getting a whole buch of errors raised inside the third party one.
Is there any way I could just ignore them, so that if I run my SP from
QA, only errors from my code, if any, show up?


In SQL 2000, you are pretty lost. In SQL 2005 you can use the new
TRY-CATCH mechanism.

--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Jan 25 '06 #3

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

Similar topics

1
34676
by: Thomas Bartkus | last post by:
The meaning of REPLACE INTO is clear to me. IF the new record presents new key values, then it is inserted as a new record. IF the new record has key values that match a pre-existing record, then the key violation is ignored and the new record *replaces* the pre-existing record. But what about INSERT IGNORE? Is this a synonym for REPLACE INTO - i.e. it does precisely the same thing?
12
11019
by: Gary | last post by:
Hi! guys, I have a SQL agent job fails because it gets 10 warnings when it runs a stored procedure. These warnings are trivial and can be ignored. Can I make it ignore these warnings and proceed? I think there is some setting I can do to change the default behavour of an agent job regarding warnings but I just don't know how to do it. Any idea?
2
3367
by: Trev | last post by:
Is there a way to make a SP ignore an error? e.g. I'm looping through each database on a server, checking of a table exists then selecting a value from that table. Now I have a database put onto the server where the table exists but all column names are different, my SP is not interested in this database so when it errors with invalid column name I want it to move onto the next databse and not display any error message.
5
12234
by: Chris Mantoulidis | last post by:
Let's say I have this: std::string s1; std::cin >> s1; This will read s1 from cin until it finds a space (or a newline, whichever comes first). Okay this works. But when I want to continue reading it reads what's left over in the cin, and well that's logical.
3
9387
by: fingermark | last post by:
If it's possible, can someone tell me how I could ignore and log SqlBulkCopy duplicate key errors? So, if the bulkCopy.WriteToServer(dt); errors on duplicate key, I want it to log what the row items that caused the error and then to skip over this row... inserting the next.
9
3459
by: Justme | last post by:
Novice programmer needs help with using fgets to read and ignore the first two lines of a file. I've gone thru the previous posting regarding fgets, but none of them seems to help my situation. I have airdata file that i have to read, but in other teh fscanf to work properly, i need to ignore the first two lines, because scanf does not read spaces. This is what my current code looks like #include <stdio.h>
2
25075
by: CZahrobsky | last post by:
I've written a macro to remove the annoying error flags (with a green triangle in the corner and an exclamation point with a drop-down when you enter the cell) in Excel spreadsheets that have a different formula for adjacent cells: Sub subIgnoreErrors(Optional ws As Worksheet) Dim cell As Range Dim intLoop As Integer Dim strEndCell as String On Error Resume Next If ws Is Nothing Then Set ws = ActiveSheet strEndCell =...
1
1453
by: Joe Stateson | last post by:
I am putting together a treeview from a web service (python script on a unix system) that generates the following xml code <toi Value="datetime.datetime(2007, 4, 2, 17, 23, 49, tzinfo=<UTC>)"/> I cannot bind the file into the treeview because the tzinfo=<UTCcauses problems. I just discovered this when I tried to display the xml file in IE. Firefox displays it just fine (no error) Anyway, is there something I can set in my page to...
1
5231
by: tembil | last post by:
Hi, here's the query that I used I need to know how to ignore errors when executing LOAD DATA infile 'myFile12_out.txt' INTO TABLE itc_db.tbl_address_out fields TERMINATED BY '|' lines TERMINATED BY '\r\n' ignore 1 lines;
0
9173
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...
0
8882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7748
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6533
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
5872
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4375
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
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
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
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.