Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL 2005: sp_attach_db doesn't add db to sysdatabases?

Status
Not open for further replies.

Catadmin

Programmer
Joined
Oct 26, 2001
Messages
3,097
Location
US
Has anyone else noticed this or is it just me?

I have a database that I rename to _Old, then I detach it so I can rename the data & log files. I reattach it, but when I try to find it in master..sysdatabases, it's not listed. I even did a "Select * from sysdatabases" and can't see it.

But it shows up in SSMS no matter how many times I refresh. How weird is this?

Anyone have a clue as to what's going on?

Thanks,


Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top