sql server - sql performance with queries referencing objects from another database -


I have to find out whether to access an object on the same server when the object reaches the object from another database The performance penalty is I. For example from a single database, which is a fast

  SELECTOtherdb.dbo.GetFormattedData (@test)   

OR

  SELECT dbo.GetFormattedData (@test)   

We are using SQL Server 2008.

There should be no performance difference if you are on the same server.

The only time to see a significant change in performance is if you are using a linked server and are actually accessing the database through a linked server.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -