Re: renaming database

From: Rohtash Kapoor (rohtash_nospam_at_sqlmantra.com)
Date: 07/09/04

  • Next message: Hari Prasad: "Re: renaming database"
    Date: Thu, 8 Jul 2004 22:30:54 -0700
    
    

    Try this. Stop the SQL Server from SQL Server Service Manager and Start
    again, and then try to rename it.

    Rohtash Kapoor
    http://www.sqlmantra.com

    "dave" <anonymous@discussions.microsoft.com> wrote in message
    news:28f5f01c4656d$493c0f50$a601280a@phx.gbl...
    > still same proble, bro...
    > dave
    > >-----Original Message-----
    > >hi dave,
    > >
    > >make sure no-one else is connected to the database,
    > including you.
    > >
    > >you can try:
    > >use master
    > >go
    > >exec sp_renamedb .............
    > >--or (if sql 2000) you can try
    > >
    > >alter database old_Database_name modify name =
    > new_database_name
    > >
    > >--if, still you get errors you can run following
    > command,to disconnect other
    > >users:
    > >--note:it will rollback existing transaction
    > >
    > >alter database <db_name> set single_user with rollback
    > IMMEDIATE
    > >
    > >--
    > >Vishal Parkar
    > >vgparkar@yahoo.co.in | vgparkar@hotmail.com
    > >
    > >
    > >.
    > >


  • Next message: Hari Prasad: "Re: renaming database"

    Relevant Pages

    • Re: Creating the nwind Virtual Directory
      ... extension node. ... > ERROR: 500 Internal Server Error ... Microsoft OLE DB Provider for SQL Server ...
      (microsoft.public.sqlserver.xml)
    • Re: Apply constraint before left join
      ... I think that the join works the way I want in SQL Server.) ... all the extra tables/queries. ... >Dave S. wrote: ...
      (microsoft.public.access.queries)
    • Re: Project REAL webcast
      ... Thanx again Dave, great input... ... > As an MSDN subscriber you can download CTP releases (which are coming out ... Both SQL Server Yukon and Visual ... And can the report builder run on 2000 as well without VS ...
      (microsoft.public.sqlserver.olap)
    • Re: Project REAL webcast
      ... Thanx againg and Sorry for my ignorance, Dave ... Unlike with SQL Server 2000, you no longer need a VS ... > Report Builder is the new term for the re-engineered Active Views. ... >>> SQL BI Product Unit (Analysis Services) ...
      (microsoft.public.sqlserver.olap)
    • Re: Upgrade from Personal to Standard?
      ... Dave ... "Hari Prasad" wrote: ... >> We have a system recently installed here which is running on SQL Server ... We need to upgrade this to 2000 Standard Edition. ...
      (microsoft.public.sqlserver.setup)