Is there a custom function available which can be used for logging errors captured in a sp in a sql table
Is there a custom function available which can be used for logging errors captured in a sp during and after execution in a sql table?
Basically we would like to utilize such function in every sp and log errors of each sp in a error log table
Mudassar
Thanks .
I was able to write this however I am thinking I am missing something
CREATE FUNCTION testfunction1()
RETURNS @temp_error TABLE (
id int identity(1,1),
procedure_name varchar(255),
line_number int,
error_number int,
error_message varchar(max),
error_state int,
error_severity int,
occurence_datetime datetime default current_timestamp,
user_name sysname default suser_name(),
login_name sysname default suser_name()
AS
BEGIN
insert @temp_error(procedure_name,line_number,error_number,error_message,error_state,error_severity)
select error_procedure(),error_line(),error_number(),error_message(),error_state(),error_severity()
RETURN;
END;
CREATE TYPE test_type AS TABLE(
id int identity(1,1),
procedure_name varchar(255),
line_number int,
error_number int,
error_message varchar(max),
error_state int,
error_severity int,
occurence_datetime datetime default current_timestamp,
user_name sysname default suser_name(),
login_name sysname default suser_name()
GO
create proc usp_error_test
@test_type AS test_type READONLY
as
begin
begin try
select 1/0
end try
begin catch
select * from testfunction1(@test_type)
end catch
end
Mudassar
Similar Messages
-
Interface/class which can be used for obtaining exchange rates of currency
Is there any interface or class in the java package which can be used for obtaining current exchange rates of currencies ?
Yes. The people at Sun change the static fields every day to reflect the current prices on the world currency markets at GMT 12:00. Then every day all the java programmers around the world reinstall a new JDK that contains the updated class. The class is called:
EuroDollarDollarEuroDollarYenYenDollarYenEuroEuroYenRubleDollarDollarRuble
To access the Euro-Dollar exchange rate, you write:
EuroDollarDollarEuroDollarYenYenDollarYenEuroEuroYenRubleDollarDollarRuble.EURODOLLAR -
I wish to insert small animations into a Keynote presentation which I can make from my desktop, although I will ultimately wish to deliver from my ipad. Simon thought there could be some software available to make this happen. Other people have said rename .gif files as .mov files, but cannot seem to do that. Many thanks for any help. M argret
This is a user to user support forum. We are all iphone users just like you.
You are not addressing Apple here at all.
This is an odd way to ask your fellow iphone users for help. Berating oterh users will not help you.
"it's too fragile"
No it is not. i have never damaged one, nor has anyone I know.
" U loose data when Ur phone is locked"
No you don't. Why do you think this?
"and there is no customer support!!! "
Wrong yet again. Apple has an 800 number and they have many retail stores and they have support articles that you can access using the search bar. Or you can contact them throgh express lane online
"but I will go back with Blackberry "
Please do.
Good ridance -
How to create dummy pricture which can be used for chart in msword
I want to create a chart in template,but have problem with creating dummy picture , is there any one could tell me how to create a dummy picture in msword. Thanks
First create a chart.
Now right click on chart > format picture > web
copy the code.
now you may delete it.
insert a picture which you want.
right click > format picture > web
paste the code.
done. -
How to specify which cert to use for software virt server?
Is there a way to specify which certificate to use for each software virtual server? So, for example a user hitting https://somewhere.com would get the certificate for somewhere.com while the virtual server https://somewhereelse.com would use the certifcate with the name somewhereelse.com in it?
No, this is not possible due to limitations of the underlying protocols.
HTTP requests are sent over TCP connections which deal with IP addresses and port numbers (i.e. hardware virtual server properties), not hostnames (i.e. software virtual server properties). The HTTP protocol adds software virtual server support by allowing a client to identify the hostname (e.g. "www.iplanet.com") of the server it wishes to communicate with. This is achieved by including a "Host:" header with each HTTP request.
Unfortunately, the SSL/TLS protocols require that the web server present its SSL/TLS certificate BEFORE the client sends its HTTP request. Since the software virtual server information is contained in the HTTP request, it is not possible for the server to select different certificates for different software virtual servers.
You will need to use hardware virtual servers (i.e. virtual servers that have different IP addresses and/or port numbers) if you wish to use distinct SSL/TLS certificates. -
Just bought an iMac. I want to be able to "remote in" to work. I've been told to download software from Microsoft site but can see there are several versions available. Can anybody advise which one I need. Thanks
You mean Microsoft Remote Desktop Connection Client for Mac
-
Is there a BAPI function module which reverses the sign of an integer
Hi Friends,
Could u plz tell me a BAPI function module which can reverse the
sign of an integer ?
For example:
if i get the integer value in work area as <number> <sign> , i need to change it to <sign><number>.
i.e if i get the integer value in work area as "248-" ("-" indicates minus sign) to " -248 ".
i.e if i get the sign after the value , my requirement is to get the sign before the value.
The actual ABAP query is:
data: QTY_1 TYPE CHAR10,
QTY_2 TYPE CHAR10,
WA_DISTK_PORTLET-QUANTITY TYPE INT4.
QTY_1 = WA_DISTK_PORTLET-QUANTITY.
SEARCH QTY_1 FOR '-'.
IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
SPLIT QTY_1 AT '-' INTO QTY_1 QTY_2.
CONDENSE QTY_1.
CONCATENATE '-' QTY_1 INTO QTY_1.
CONDENSE QTY_1.
ELSE.
CONDENSE QTY_1.
ENDIF.
CLEAR: WA_DISTK_PORTLET-QUANTITY.
MOVE : QTY_1 TO WA_DISTK_PORTLET-QUANTITY.
when i move this QTY_1 to work area quantity field The sign is coming after the numeric value.
Note: There is no possibility to change the datatype of quantity field.
I have tried my level best with 'CLOI_PUT_SIGN_IN_FRONT' function module.
I will assign full points to the correct function module.Hi Ram,
try this ang look into fields.
data: fields type table of SVAL with header line.
fields-tabname = 'MARA'. fields-fieldname = 'MATNR'. append fields.
fields-tabname = 'BKPF'. fields-fieldname = 'BUDAT'. append fields.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
POPUP_TITLE = 'Value Insert'
TABLES
FIELDS = fields.
Regards, Dieter -
Function module which can print from spool request ?
Hi ,
Is there any function module which can print from spool request ?
Regards
pabiI think NO.
You have to take print from SP01.
Amit. -
We are planning to build a competency catalogue to be used in our company, which is an IT services organization. Is there a standard competency catalogue available in HCM which can be used by IT Services organization? Or should it be built from scratch using place holders available in HCM?
- VikramIs the database on the server with the Niagara chipset ? If so, there are known performance issues for this combination. See MOS Doc 781763.1 (Migration from fast single threaded CPU machine to CMT UltraSPARC T1 and T2 results in increased CPU reporting) for details.
Bottom line, the Niagara chipset is not recommended for database servers - they are fine for application or web servers.
HTH
Srini -
Is there any registry functions available in Flex
Is there any registry functions available in Flex:
So that it can be useful...to make a application to start during startupI dont think so through Flash player security constraint you can access registry on local.
-
I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.
I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.
-
Is Invoice Number a unique customer account number which can be linked to payments?
Is Invoice Number a unique customer account number which can be linked to payments?
Invoice number is the order invoice number. The customer has their own ID. IF that person makes more orders they get more order ID's and if they are purchased and completed transactions they get a another invoice number.
Its not one invoice per customer if thats what you mean? -
Is there a CUCM API which can be used to see what calls are in progress?
Hello All,
I am trying to build a basic monitoring application which will display a list of calls in progress along with endpoint information such as IP address etc
Is there a CUCM API which can be used to see what calls are in progress?
Thanks
MattMatt,
It looks like another person had a similar question before, see the following thread:
https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
https://developer.cisco.com/site/devnet/home/index.gsp
Hope this information helps,
Marco Rojas. -
I want to watch 2d movies converted to 3d, is there any software which can do this for mac, i know there are many for windows.Or any player which can do this?
Or may be i can can watch normal 3d movies on my macbookpro with a glass?Xilisoft 3D Video Converter for Mac - 3D converter to convert 3D ...
Mac 3D Video Converter - 3D Converter convert 2D video to 3D, 3D ...
Convert DVD Movies to 3D Mac - Best 2D to 3D Converter
4Media 2D to 3D Video Converter for Mac: Convert 2D video to 3D ...
Convert 2D Video to 3D for Mac- Tutorial for You about Using 2D ... -
i bought ilife 11 but cant update it. Is there any e-mail address which can i get help about ilife 11?
i bought it from Turkey website. apple.com.tr and i paid the price bu i cant update it and there are nothing i can do? i called the turkey's apple but they said i should mail this to apple.com. So, i didnt find any e-mail support address for ilife 11.
what should i do? apple support center is really bad for unplanned situations.Apple doesn't have an e-mail address. Unfortunately you'll have to resort to snail mail, for anything that can't be answered by phone or the website.
iLife '11 has had no updates issued so far:
http://support.apple.com/downloads/#ilife
If it should ever get an update, it would likely be at that link.
Maybe you are looking for
-
Problem in Creating a JDBC System - SQL Server
Hi All I failed in creating a JDBC System(SQL Server). I am using SAP EP 7.0 SP 9. I tried to create the JDBC system with the following properties: I am listing them Category wise: Connection Properties: 1. Connection Timeout: 300 2. Connection URL
-
Adobe reader not working. Can anybody help?
I am using a Nokia E63 device. Adobe Reader came preloaded in the device. I recently formatted my phone and when i backed it up, my pdf files won't open. Whenever i try to open any pdf file it says 'unable to open file!'. I tried accessing the Adobe
-
Hi All, We are facing problems with the delta record sequence in some of our extractors(QM, SD). How do we fix this issue. we are of 2004.1 Patch 5, Update Mode - Queued Delta. Thanks Niveda
-
Hi, Need to know, how to schedule an ABAP Query for Background Processing. Regards,
-
IOS 5 and the Cloud-Corporate Data(?)
I was wondering if anyone had given thought about how organizations can deal with proprietary data being synced to the cloud with IOS 5. As I understand it, any data on the device, including corporate email would be synced...we are pretty concerned