May 29, 2012 at 7:21 am
Hi there,
I have about a dozen databases on my server and I was wondering if it was possible to set a specific DB as the "active" one. If a DB is "active", I would no longer have to reference its actual DB name and the schema the table I want to pull belongs to (ie. from "mydatabase.myschema.table1" → "table1")
May 29, 2012 at 7:28 am
No such concept as 'active' database.
For objects in your connection's current database you don't need to specify the database name. For objects from another, then it does need to specify the database name.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 29, 2012 at 8:27 am
How do I change the current connection to a different database?
May 29, 2012 at 8:35 am
Did you try searching first?
May 29, 2012 at 8:48 am
Search on 'default database' and 'initial catalog'.
----------------------------------------------------------------------------
Sacramento SQL Server users group - http://sac.sqlpass.org
Follow me on Twitter - @SQLDCH
----------------------------------------------------------------------------
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply