What is the difference between compile errors and run-time errors in SQL Server? How these errors are distinguished in SQL Server?
What is the difference between compile errors and run-time errors in SQL Server? How
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
compile errors occur during the process of generating an execution plan. Run time errors occur when the plan is generated and is being executed.
The only way of distinguishing between the two is whether or not a plan is generated AFAIK.
Examples
The last 2 raise exactly the same error even though one is a compile time error and the other a run time error.