Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Fail a Package

Status
Not open for further replies.

dhoward007

Programmer
Feb 6, 2002
45
US
I need to be able to fail a package if my query doesn't return the correct number of records.

Is there a way to fail a dts package if a certain criteria is not met?
 
Raiseerror will fail your package

if (select count(*) from sysobjects)>50
begin
RAISERROR (50001, 16, 1,'Error')
end

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top