Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 default database

Author  Topic 

raveekumarg
Starting Member

36 Posts

Posted - 2009-01-13 : 06:35:55
how to change the default database to some other database thru query without changing in sql server login properties

ravi

tosscrosby
Aged Yak Warrior

676 Posts

Posted - 2009-01-13 : 09:55:16
Not exactly clear on what you're trying to do. It could be as simple as this. If this doesn't do what you're asking for, provide additional details (like code?) and we can provide more direction.

Use dbname
go



Terry

-- Procrastinate now!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-13 : 10:25:39
use sp_defaultdb

http://doc.ddart.net/mssql/sql70/sp_da-di_6.htm
Go to Top of Page
   

- Advertisement -