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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to remote reset default database

Status
Not open for further replies.

Seaspray0

Technical User
Jan 27, 2003
1,037
US
domain.com\domain users was added as a user and the default database was set to a database that domain users do not have permissions. Now when trying to connect through the enterprise manager, I get.

A connection could not be established to (LOCAL).

Reason: Cannot open user default database. Login failed..


Is there anyway to clear the default database for domain.com\domain users? I do not have the password for the SA or I would have used it. The domain user account is a domain admin which has permissions in sql. Does anyone know how I can remotely reset the default database, like with a VB script?

Start, Help. You'll be surprised what's there. A+/MCP/MCSE/MCDBA
 
lookup sp_defaultdb in BOL, see if that'll work for you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top