Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8613805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:58:14+00:00 2026-06-12T04:58:14+00:00

For list1, select ‘ok’ will be run even select 1/0 generate an error. for

  • 0

For list1, select ‘ok’ will be run even select 1/0 generate an error. for list 2 select ‘ok’ will not be run since update fail. Both list generate error of level 16 but why there are such difference?

--1
select 1/0  
select 'ok'

--2
create table #t (a int)
insert into #t values(1)

update #t set b = 99
select 'ok'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:58:15+00:00Added an answer on June 12, 2026 at 4:58 am

    update #t set b = 99 is a compile time error.

    The batch is compiled and as #t does not exist that statement is subject to a deferred compile. It is impossible to even generate a plan for this statement to update a non existent column so there is a compile error on that statement.

    Runtime compile errors abort the scope.

    It is not always intuitive what effect a runtime error will have (abort the statement, scope, batch or connection). See What Happens when an Error Occurs? for some examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a select list, where you can choose multiple cities - When choosing
I have a select list. I want to append a new item in italic
I have a select list which is being populated using the values from a
I have a select list I've created in a form alter, however, when I
I have a SELECT LIST MENU containing products and on this menu i use
I have a multi-select list box. I want to be able to select a
I have the following select list from which the user can select multiple values.
I have a main select list of courses which drives various things on a
Is their a way to programmatically select an item in a dashcode list with
I'm having a tough time figuring out how to have a select list drive

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.