Click here to Skip to main content
15,925,206 members
Home / Discussions / Database
   

Database

 
AnswerRe: Save and retrieve an image with SQL Server 2005 Pin
Giorgi Dalakishvili2-May-07 7:17
mentorGiorgi Dalakishvili2-May-07 7:17 
GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
MCAST762-May-07 16:49
MCAST762-May-07 16:49 
AnswerRe: Save and retrieve an image with SQL Server 2005 Pin
Michael Potter2-May-07 8:27
Michael Potter2-May-07 8:27 
GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
MCAST762-May-07 16:47
MCAST762-May-07 16:47 
GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
Giorgi Dalakishvili2-May-07 21:05
mentorGiorgi Dalakishvili2-May-07 21:05 
Questionsql string format Pin
hero19952-May-07 5:42
hero19952-May-07 5:42 
AnswerRe: sql string format Pin
Rob Graham2-May-07 9:17
Rob Graham2-May-07 9:17 
QuestionHow do you resume next? Pin
kayos5922-May-07 5:42
kayos5922-May-07 5:42 
<br />
CREATE TABLE TestTable<br />
	(Field1 INT)<br />
GO<br />
<br />
DECLARE @Err INT<br />
<br />
INSERT INTO TestTable (field1) VALUES (9999999999)<br />
SELECT @Err = @@Error<br />
	IF @Err <> 0<br />
	BEGIN<br />
		PRINT 'Im In'<br />
		INSERT INTO TestTable (field1) VALUES ('1235456')<br />
	END<br />
<br />
SELECT * FROM TestTable WHERE field1 = 'ABC'<br />
SELECT @Err = @@Error<br />
	IF @Err <> 0<br />
	BEGIN<br />
		PRINT 'Im In'<br />
		INSERT INTO TestTable (field1) VALUES ('1235456')<br />
	END<br />


When executing the above code, you will enter the first @Err condition but not the second. Both errors produce the same Severity level so I'm not sure why it resumes on one but not the other. Is there any way to force an SP to resume next?


-Kay

AnswerRe: How do you resume next? Pin
Colin Angus Mackay2-May-07 6:06
Colin Angus Mackay2-May-07 6:06 
GeneralRe: How do you resume next? Pin
kayos5922-May-07 6:54
kayos5922-May-07 6:54 
QuestionSQL Query Problem Pin
rachitdamani2-May-07 1:14
rachitdamani2-May-07 1:14 
AnswerRe: SQL Query Problem Pin
gauthee2-May-07 1:48
gauthee2-May-07 1:48 
QuestionGranting Permissions: Under what authority? Pin
Brady Kelly1-May-07 23:56
Brady Kelly1-May-07 23:56 
AnswerRe: Granting Permissions: Under what authority? Pin
Colin Angus Mackay2-May-07 0:19
Colin Angus Mackay2-May-07 0:19 
GeneralRe: Granting Permissions: Under what authority? Pin
Brady Kelly2-May-07 1:20
Brady Kelly2-May-07 1:20 
Questionplease tell me the truth Pin
hero19951-May-07 23:36
hero19951-May-07 23:36 
AnswerRe: please tell me the truth Pin
gauthee8-May-07 0:10
gauthee8-May-07 0:10 
GeneralRe: please tell me the truth Pin
hero199523-May-07 18:59
hero199523-May-07 18:59 
Questionhow to strore video in database Pin
Rama krishna.M1-May-07 21:49
Rama krishna.M1-May-07 21:49 
AnswerRe: how to strore video in database Pin
Pete O'Hanlon1-May-07 22:38
mvePete O'Hanlon1-May-07 22:38 
Questionremoving duplicate rows Pin
chinnivinay1-May-07 21:09
chinnivinay1-May-07 21:09 
AnswerRe: removing duplicate rows Pin
Pete O'Hanlon1-May-07 22:39
mvePete O'Hanlon1-May-07 22:39 
Questionconnection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami1-May-07 20:35
Rupesh Kumar Swami1-May-07 20:35 
AnswerRe: connection string for connect to SQL server 2000 Pin
Vimalsoft(Pty) Ltd1-May-07 21:54
professionalVimalsoft(Pty) Ltd1-May-07 21:54 
GeneralRe: connection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami1-May-07 22:38
Rupesh Kumar Swami1-May-07 22:38 

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.