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 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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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?
|
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?
|
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.
|
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.
|
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.
| |
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>
|
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 =...
|
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...
|
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;
|
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...
|
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...
| |
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |