Solved

SQL Server 2012 execute getting "Command(s) completed successfully" even though there are invalid object names.

Posted on 2014-01-15
2
912 Views
Last Modified: 2014-01-20
Hello Folks,

This is the first time I am trying the Exchange so please be forgiving if I do not know the exact protocol for submitting requests.  We have just upgraded to SQL Server 2012.  When I execute a stored procedure through SSMS I get a "Command(s) completed successfully" even though I know for a fact there are invalid table names in the stored procedure.   I have tried toggling the NOEXEC but it did not do anything.  Can someone please  help me out on this?  Thank you in advance.

Sincerely,
Thomas
0
Comment
Question by:wibench
2 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 39783937
Can you try executing it from another machine ?
0
 
LVL 16

Accepted Solution

by:
Surendra Nath earned 500 total points
ID: 39783972
first thing SQL Server is not Oracle

Oracle will not late bindings for the entities or table names, but SQL Server does...
that means it may leave table names or entities which does not exists...

this can happen in various scenarios,

1) if the table is a temporary table
2) if the object is a synonym
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now