1

I am curious to find out if there is a performance penalty accessing an object from another database on the same server vs accessing an object from the same database. For example, which one is faster

SELECT Anotherdb.dbo.GetFormattedData(@test) 

OR

SELECT dbo.GetFormattedData(@test)

we are using sql server 2008.

1
  • You can use some sample data and test it Commented Apr 21, 2014 at 19:26

1 Answer 1

1

There shouldn't be a performance difference if you are on the same server.

The only time you should see a notable change in performance is if you are using a linked server and actually accessing a database via linked server.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.