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

  • SEARCH
  • Home
  • 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 1005763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:20:57+00:00 2026-05-16T08:20:57+00:00

I received a ticket today concerning a broken application that was caused by a

  • 0

I received a ticket today concerning a broken application that was caused by a broken stored procedure.

The stored procedure had been working for a few months now, but today when I examined it I found a few bugs.

first there was a query like this.

SELECT a.a
, b.b
, a.b
FROM table1 a JOIN
table2 b
ON. a.a = b.a

the period after the “ON” obviously caused the error.
Fixing it was easy, but as far as I know, you can’t save a stored procedure
that is broken. In fact, when I opened the stored procedure, (without modifying it)
and tried to run the alter with the code from there, it failed with the error messages.

There were other errors like this through the stored procedure that I fixed to finally run the alter.

I don’t understand how this is possible, and would like to know what could change and save a stored procedure that is broken.
From what I’ve been told there have been no changes to the server at all, and like I mentioned before this stored procedure had been working for the past few months

It feels like i’m hunting a ghost, and any information will be greatly appreciated.

  • 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-05-16T08:20:58+00:00Added an answer on May 16, 2026 at 8:20 am

    I’m guessing this is an issue of deferred name resolution.

    SQL Server will allow you to create procedures that reference objects that do not exist at the time of stored procedure creation. In this case, SQL chooses to defer compilation of the query to runtime, trusting that the object will be there by the time the procedure is called, hence the syntax is not verified when the procedure is created.
    If when the procedure is subsequently executed the syntax is incorrect, you’ll get an error at that point, but not during the procedure creation.

    For example, if table1 and table2 do not exist, this statement will complete without error:

    CREATE PROCEDURE testproc AS
    SELECT  a.a 
            , b.b 
            , a.b 
    FROM    table1 a 
            JOIN table2 b ON. a.a = b.a
    

    When you go to execute testproc, you’ll get the following error:
    “The multi-part identifier “.a.a” could not be bound.”

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

Sidebar

Related Questions

I received some text that is encoded, but I don't know what charset was
I recently received an email from my girlfriend that spamassassin marked as spam, mostly
I have only just started received the following error in my windows forms application
I am currently working on building a system for my client that could be
I received a request from my users that they want is a common portal
I received the following exception when I was using the Regex class with the
I received an error when an referenced .NET Framework 2.0 assembly tried to execute
I received a MySQL data dump and am trying to insert the data into
Aloha I received a nice wsdl with xs: documentation tags like: <xs:complexType name=Supplier> <xs:annotation>
I've received some documentation from one of our suppliers for a webservice they're publishing

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.