Solved

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

Posted on 2014-01-15
2
996 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

734 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