Advertisement

02.12.2008 at 09:40PM PST, ID: 23158777
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Decision of Commit / Rollback between SQL Server 2000 and Powerbuilder 7

I want to know , if I am doing right.

-- Procedure written in Sql sErver 200
CREATE proc usp_test_commit as
begin tran mytran
set nocount on

delete from temp1
if @@error<>0 goto failed

insert temp1 values('abc')
if @@error<>0 goto failed

insert temp1 values('xyz')
if @@error<>0 goto failed

commit tran mytran
return 0

failed:
rollback tran mytran
return 1

-- Powerbuilder application
-- AUTO COMMIT SETTING IS OFF
string ls_sql
ls_sql = 'exec accsrv.accounts.dbo.usp_test_commit '
execute immediate :ls_sql using sqlca;

IF sqlca.SqlCode <> 0  and sqlca.sqlcode <> 100 THEN
  messagebox('',sqlca.SqlErrText)
  Rollback;
  else
  commit;
end if                              
                 
WHERE AM I CONFUSED.
I am doing rollback / commit in SQL Proc.
I am also doing rollback / commit in PB script.
Am I doubling or my code is ok.

MTNN

Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: Mehram
Solution Provided By: diasroshan
Participating Experts: 2
Solution Grade: A
Views: 136
Translate:
Loading Advertisement...
02.13.2008 at 08:48AM PST, ID: 20885772

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 02:02AM PST, ID: 20892149

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 04:10AM PST, ID: 20892619

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 07:57AM PST, ID: 20894367

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 12:19AM PST, ID: 20900090

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 08:11AM PST, ID: 20903038

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 10:32PM PST, ID: 20908507

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.17.2008 at 03:53AM PST, ID: 20913759

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628