Click here to Skip to main content
15,885,918 members
Home / Discussions / Database
   

Database

 
GeneralRe: how to read returned identity value from stored procedure Pin
Mycroft Holmes23-Oct-08 19:43
professionalMycroft Holmes23-Oct-08 19:43 
Questioncan't start sql server service manager [modified] Pin
sathyan_829422-Oct-08 23:37
sathyan_829422-Oct-08 23:37 
AnswerRe: can't start sql server service manager Pin
Ashfield22-Oct-08 23:54
Ashfield22-Oct-08 23:54 
QuestionWhat are the various debug visualizers in visual studio ? Pin
lovedotnet22-Oct-08 18:38
lovedotnet22-Oct-08 18:38 
AnswerRe: What are the various debug visualizers in visual studio ? Pin
John Gathogo23-Oct-08 1:53
John Gathogo23-Oct-08 1:53 
QuestionRollback transaction problem Pin
hdtrung22-Oct-08 17:42
hdtrung22-Oct-08 17:42 
AnswerRe: Rollback transaction problem Pin
Mycroft Holmes22-Oct-08 23:44
professionalMycroft Holmes22-Oct-08 23:44 
GeneralRe: Rollback transaction problem Pin
hdtrung23-Oct-08 4:01
hdtrung23-Oct-08 4:01 
I create this proc in SQL Server 2000 and I think this proc will be compiled because there is no syntax error (I have checked syntax error after creating). Instead, it will cause run-time error because there is no abc123 table in the data base.
The problem is SQL Server 2000 stop executing other statement when it gets an error in select,delete,insert or update statement.
I've tried to use:
SET XACT_ABORT ON
to rollback other statements in the transaction but it still making error cause: ROLLBACK or COMMIT are not executed after BEGIN TRAN.

Please run my proc then help me to solve this problem.
Thank you very much.


CREATE PROCEDURE [dbo].[sp_test] AS
SET XACT_ABORT ON
DECLARE @Res int
begin transaction
select * into abc from sysusers
delete from abc123
Set @Res = @@ERROR
if @Res <> 0
ROLLBACK TRANSACTION
else
COMMIT TRANSACTION
GO

adfafafa

GeneralRe: Rollback transaction problem Pin
Mycroft Holmes23-Oct-08 11:51
professionalMycroft Holmes23-Oct-08 11:51 
QuestionProblem with .ldb file Pin
Venumunna22-Oct-08 15:49
Venumunna22-Oct-08 15:49 
AnswerRe: Problem with .ldb file Pin
Wendelius22-Oct-08 17:42
mentorWendelius22-Oct-08 17:42 
QuestionGet the columns name that contains this value in it's first row Pin
Muammar©21-Oct-08 22:39
Muammar©21-Oct-08 22:39 
AnswerRe: Get the columns name that contains this value in it's first row Pin
Ennis Ray Lynch, Jr.22-Oct-08 2:59
Ennis Ray Lynch, Jr.22-Oct-08 2:59 
GeneralRe: Get the columns name that contains this value in it's first row Pin
Muammar©22-Oct-08 3:32
Muammar©22-Oct-08 3:32 
AnswerRe: Get the columns name that contains this value in it's first row Pin
Wendelius22-Oct-08 4:06
mentorWendelius22-Oct-08 4:06 
Questionrounding up issue in sql.... Pin
Sasmi_Office21-Oct-08 21:54
Sasmi_Office21-Oct-08 21:54 
AnswerRe: rounding up issue in sql.... Pin
Muammar©21-Oct-08 22:51
Muammar©21-Oct-08 22:51 
GeneralRe: rounding up issue in sql.... Pin
Sasmi_Office21-Oct-08 23:01
Sasmi_Office21-Oct-08 23:01 
GeneralRe: rounding up issue in sql.... Pin
Muammar©21-Oct-08 23:44
Muammar©21-Oct-08 23:44 
AnswerRe: rounding up issue in sql.... Pin
Ashfield21-Oct-08 23:27
Ashfield21-Oct-08 23:27 
GeneralRe: rounding up issue in sql.... Pin
Sasmi_Office22-Oct-08 0:02
Sasmi_Office22-Oct-08 0:02 
GeneralRe: rounding up issue in sql.... Pin
Ashfield22-Oct-08 2:56
Ashfield22-Oct-08 2:56 
GeneralRe: rounding up issue in sql.... Pin
Sasmi_Office22-Oct-08 3:00
Sasmi_Office22-Oct-08 3:00 
QuestionOracle Store Proc Cursor across db Pin
jensenx21-Oct-08 21:05
jensenx21-Oct-08 21:05 
AnswerRe: Oracle Store Proc Cursor across db Pin
Wendelius22-Oct-08 9:58
mentorWendelius22-Oct-08 9:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.