Solved

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

Posted on 2014-01-15
2
894 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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.
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

758 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

25 Experts available now in Live!

Get 1:1 Help Now