Click here to Skip to main content
15,891,316 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
asimptota7776-Aug-12 0:55
asimptota7776-Aug-12 0:55 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
Eddy Vluggen6-Aug-12 1:18
professionalEddy Vluggen6-Aug-12 1:18 
GeneralCauses of Urecognized Database Format Pin
ASPnoob2-Aug-12 23:25
ASPnoob2-Aug-12 23:25 
GeneralRe: Causes of Urecognized Database Format Pin
Mycroft Holmes2-Aug-12 23:34
professionalMycroft Holmes2-Aug-12 23:34 
GeneralRe: Causes of Urecognized Database Format Pin
Eddy Vluggen2-Aug-12 23:40
professionalEddy Vluggen2-Aug-12 23:40 
GeneralRe: Causes of Urecognized Database Format Pin
ASPnoob3-Aug-12 0:13
ASPnoob3-Aug-12 0:13 
GeneralRe: Causes of Urecognized Database Format Pin
Eddy Vluggen3-Aug-12 0:21
professionalEddy Vluggen3-Aug-12 0:21 
GeneralOn error resume next Pin
vanikanc2-Aug-12 4:44
vanikanc2-Aug-12 4:44 

If we are selecting a set of data, and one of the fields is erroring out, with an arithematic over flow error, how to move this row aside and continue processing the remaining rows so that the entire stored procedure does not fail?

More like move this row causing the issue into a table and continue processing remaining rows?

Is there like on error resume next?

I tried a try catch block.

With in my try I had a select statement with a good value and one with a bad value, I wanted the select to print the good and not the bad one.

======================

declare @dummy int
begin try
select
--right('00000000' + cast(cast(round(500000,0)*10000 as int) as varchar(8)),8)
right('00000000' + cast(cast(round(500000,0)*10000 as int) as varchar(8)),8)
select
--right('00000000' + cast(cast(round(500000,0)*10000 as int) as varchar(8)),8)
right('00000000' + cast(cast(round(500000,0)*10000 as int) as varchar(8)),8)
end try

begin catch
set @dummy = 1
end catch

print @dummy

modified 2-Aug-12 11:06am.

GeneralRe: On error resume next Pin
Eddy Vluggen2-Aug-12 9:46
professionalEddy Vluggen2-Aug-12 9:46 
GeneralRe: On error resume next Pin
vanikanc2-Aug-12 9:50
vanikanc2-Aug-12 9:50 
GeneralRe: On error resume next Pin
Eddy Vluggen2-Aug-12 10:02
professionalEddy Vluggen2-Aug-12 10:02 
GeneralRe: On error resume next Pin
vanikanc2-Aug-12 10:14
vanikanc2-Aug-12 10:14 
QuestionRe: On error resume next Pin
Eddy Vluggen2-Aug-12 12:33
professionalEddy Vluggen2-Aug-12 12:33 
AnswerRe: On error resume next Pin
vanikanc3-Aug-12 3:05
vanikanc3-Aug-12 3:05 
GeneralRe: On error resume next Pin
Eddy Vluggen3-Aug-12 4:02
professionalEddy Vluggen3-Aug-12 4:02 
QuestionSQL Query - write all in one query Pin
Raman samineni1-Aug-12 6:30
Raman samineni1-Aug-12 6:30 
AnswerRe: SQL Query - write all in one query Pin
PIEBALDconsult1-Aug-12 8:42
mvePIEBALDconsult1-Aug-12 8:42 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni1-Aug-12 16:02
Raman samineni1-Aug-12 16:02 
GeneralRe: SQL Query - write all in one query Pin
PIEBALDconsult1-Aug-12 18:23
mvePIEBALDconsult1-Aug-12 18:23 
AnswerRe: SQL Query - write all in one query Pin
Mycroft Holmes1-Aug-12 13:17
professionalMycroft Holmes1-Aug-12 13:17 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni1-Aug-12 15:56
Raman samineni1-Aug-12 15:56 
GeneralRe: SQL Query - write all in one query Pin
Mycroft Holmes1-Aug-12 16:25
professionalMycroft Holmes1-Aug-12 16:25 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni2-Aug-12 8:22
Raman samineni2-Aug-12 8:22 
AnswerRe: SQL Query - write all in one query Pin
Eddy Vluggen1-Aug-12 22:34
professionalEddy Vluggen1-Aug-12 22:34 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni2-Aug-12 8:19
Raman samineni2-Aug-12 8:19 

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.