Transaction completing with out the process
hi all
I have an SP which does Updation in table_1 and Table_2 Both having more than 8 columns where 4 columns are updating though this SP depends on the condition.
My problem is i wrote this Query under transaction Block to update 4 cols of both tables..where column_4 is a Bit datatype column. The issue is apart from this column_4 all other columns are updating though this SP and transaction does Commit.
Why it is happening?
I had also tried from application side and found data values are passing correctly to this Sp. also this is not happening in every cases it is happening only intermediatly . also development Server is not having such issue only production having this issue..Can
any one help to troubleshoot? my question is With out updating column_4 how transaction does commit. in what all senarios Transaction does commit like this?
Hi Jens...thanks for the Quick reply
Kindly have a look on the skeleton of my SP.
CREATE PROCEDURE Procedure_name
Col1 varchar(11),
col2 varchar(20),
Col3 varchar(100),
Col4 datetime
AS
BEGIN
SET NOCOUNT ON;
BEGIN TRY
BEGIN TRANSACTION BulkUpdate
IF (LOWER(@Col2) = 'Somestring')
begin
UPDATE table_1
SET
Col1 = 1,
Col4 = 1,
Col5 = @TimeStamp,
Col6 = 'Somesting' ,
Col2 = 'Completed'
where Col7 = @Col3
end
else if (LOWER(@Col2) = 'anotherString')
begin
UPDATE table_1
SET
Col1 = 2,
Col4 = 1,
Col5 = @TimeStamp,
Col6 = 'Somesting' ,
Col2 = 'Completed'
where Col7 = @Col3
end
IF (LOWER(@Col2) = 'Somestring')
begin
UPDATE table_2
SET
Col1 = 1,
Col4 = 1,
Col5 = @TimeStamp,
Col6 = 'Somesting' ,
Col2 = 'Completed'
where Col7 = @Col3
end
else if (LOWER(@Col2) = 'anotherString')
begin
UPDATE table_2
SET
Col1 = 2,
Col4 = 1,
Col5 = @TimeStamp,
Col6 = 'Somesting' ,
Col2 = 'Completed'
where Col7 = @Col3
end
COMMIT TRANSACTION BulkUpdate
END TRY
ROLLBACK TRANSACTION BulkUpdate
DECLARE @ErrorMessage VARCHAR(4000);
DECLARE @ErrorSeverity INT;
DECLARE @ErrorState INT;
SELECT @ErrorMessage = ERROR_MESSAGE(),
@ErrorSeverity = ERROR_SEVERITY(),
@ErrorState = ERROR_STATE();
RAISERROR (@ErrorMessage,
@ErrorSeverity,
@ErrorState
END CATCH
END
Similar Messages
-
How can I completely wipe the hard drive with out the Mac OS X disc? I don't need any of the info on the computer.
You can't unless you have a bootable system on an external drive you can use. Otherwise, you need either the original disc that came with your computer or a retail copy of Snow Leopard DVD. The latter contains 10.6.3, so your model must be capable of booting from that or an earlier version of OS X.
You can purchase replacement discs from Apple:
Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
To contact product and tech support: Apple - Support - Contact Apple Support.
You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements. -
How to Test, Inbound idoc ,with out the Sender System, using a Text File
Hi Guru's .
we wanted to test BLAORD03 inbound idoc (Message Type BLAORD).with out the SENDER SYSTEM.
on the same client.
we wanted to test this idoc with text file from our local machine.
Can anyone give us detail steps.like how to create File layout
with Segment name,and values for the fields.how to pass this file to the system.
Thanks in advance.Hi Aparna.
My requirement is to test the idoc with Inbound File.
Generate a file with the data entered through segments through we19 ,and use the same file for processing through we16.
when i am trying to do this syst complaing about
Partner Profile not available, and some times
port not available. and some times with
'No further processing defined'.
but i maintained part profiles and port perfectly.
Can you help me in testing with test 'File' port. -
Thank you for help but I can't remember my Email can I actevate it with out the apple ID pleas help me
Welcome to the Apple Community.
Sorry but without your previous Apple ID and password you cannot unlock your device. -
hi can you help me get my facebook back on my ipod touch. i have ipod touch with out the camera.
It sounds like you may have a 2nd generation iPod. If so, it can not be upgraded beyond 4.2.1. The Apps you are trying to load are compatible with a higher version of the iOS.
-
i have bought a used macbook, to bad i do not have the admin password. is there any way to bypass this issue with out the Mac OS X disk? (without loosing my obtained files?) I NEED HELP BADLY PLEASE....
What version of the Mac OS X are you running. Go to the Apple in the upper left corner and select About This Mac and post the version.
-
How to find out the process chain
Hi folks
Hope every one is doing good..!
in sm37 my job is running (ABAP program) which is in process chain, but i have to find out the process chain name..!
Could any one help me on this..!hi,
in SM37 select the job status as active and execute it, in the next screen you will find only active jobs select your job (ABAP Program) click on step - > in th next screen put the cursor on the job -> select Goto option in menu bar click on variant it gives you the field names and desc like chain name, variant etc information.
Regards
Sankar -
I could really use some insight into this please also how many gigs of RAM should my power mac have it only has two right now and logic tends to glitch up majorly.
My original question :
I purchased a powermac pro and it came with logic Pro 9 (but with out the additional suite of programs that comes with). How can I reregister or reinstall Logic Pro 9 to get those features? -
How can Siri still tweet and post to Facebook if I just changed my password from the respective websites, with out the iphone "knowing" I changed my passwords?
If you buy an iLife '11 install DVD (eBay, Amazon) you could upgrade your iPhoto right away. The earlier iPhoto '11 versions are compatible with MacOS X 10.6.8.
but I can't until I upgrade from OS X 10.6.8. Trying to figure out how to do that...
To upgrade to Mt. Lion see here: You can buy it and download it from the appStore, if your mac is compatible:
http://www.apple.com/osx/how-to-upgrade/ -
hi
can all the scenarios be done with out the aid of adapters and just with the help of
proxies for was 6.4 appln serverHi,
It depends on whether you already have existing IDocs/RFCs in the Sender/Receiver or not. If yes, then you need to examine the feasibility of changing the existing logic from RFC/Idoc, to pushing RFC/Idoc data through Proxy.
If you are starting from scraqtch, it is always possible (and best) to use proxies. There is no need of adapters there.
Regards,
Puloma. -
How do you unlock the volme with out the code
how do you unlock the volme with out the code
You can't. If you do not know the volume passcode, your only option is to connect the iPod to your iTunes library and restore it to factory settings.
B-rock -
My mozilla firefox search engine always defaults to amazon...how do I get just basic mozilla firefox search screen with out the default to amazon.com for everything ?
Change the search plugin in the search bar to something else and you can search with that.
-
I have 2 i-touches can not just add one play list with out the entire icloud down loading.
I have 2 i-touches can not just add one play list with out the entire icloud down loading.
Also my daughter is getting my wifes im's and vice a versaPlace the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
For how to restore:
iTunes: Restoring iOS software -
can you operate the mac book pro 15 inch with out the battery? I read somewhere in a post that it lowers the power to about 1 gig with out the battery. I asked apple and they said it is not true because you can use the comp with the power adapter and battery together or either by itself and it will not effect the 2.16 gig. Thank you.
If you remove the battery the CPU power will be cut by 50% (whatever they told you) so that there's no lack of power or overheating issues. It's best to always keep the battery in.
-
I am so angry because one min. I can buy something and now I can't with out the security question that I do know I swear I know but won't let me buy anything when I did yesterday. On iTunes
If it's not accepting your answers, then if you have a rescue email address (which is not the same thing as an alternate email address) on your account then steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699
When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use
Maybe you are looking for
-
Cant find the movie in my ipod classic 80gb.
First i could not import the movie to itunes, but i changed the name to something shorter and then it came in to Itunes. And now i cant find it in my ipod. the movie is .Mp4 och it a H.264 codec (i dont know what that h.264 means...). But i have a ot
-
Can I avoid setting up a DNS server?
Dear all, I'm a newbie to set up a server but I recently bought a Mac Mini Server and I have some questions in setting up the machine. My ultimate goal: Set up a multimedia server in my Mac Mini Server which provide photos up / download and Quicktime
-
How do I open a port using "a shell" (Terminal)?
There is a question hereabouts that deals with opening a TCP port using "a shell." The response says that this is possible but does not say how. Specifically I need to know this for Yosemite, most recent iteration. The port would be 8101, for Tivo De
-
Unable to upload photos on icloud!
I've recently installed IOS5 on ipad, i got my icloud account working (address, calendar etc. all work fine), BUT no sign of PHOTO FOLDER on my icloud account...! of course I set on ON the flux of photo function on the ipad. but nothing appears on
-
I am unable to use adobe to enter nfl fantasy draft.
I am unable to use adobe to enter into nfl fantasy draft. All I get is a screen that says: Check for wsb sockets or flash version 10.0, which shows sucessful, and the 2nd line states: testing cinnection status which shows blank.