小さな問題があり、これらを正しく使用しているかどうか疑問に思っています。
私のSQLスクリプトには
BEGIN TRY
// check some information and if there are certains errors
RAISERROR ('Errors found, please fix these errors and retry', 1, 2) WITH SETERROR
// Complete normal process if no errors encountered above
PRINT 'IMPORT SUCCEEDED'
END TRY
BEGIN CATCH
PRINT 'IMPORT ABORTED. ERRORS ENCOUNTERED'
END CATCH
ただし、これはエラーが発生したため、残りのスクリプトを続行しています。私は何が欠けていますか?ありがとう!