Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Rename database file

2 posts in General Discussion Last posting was on 2005-08-19 18:21:28.0Z
Ivan Posted on 2005-08-19 13:48:20.0Z
From: "Ivan" <ibmoreno@bol.com.br>
Newsgroups: ianywhere.public.general
Subject: Rename database file
Lines: 7
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 201.11.183.8
Message-ID: <4305e320@forums-2-dub>
X-Original-Trace: 19 Aug 2005 06:48:16 -0700, 201.11.183.8
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Aug 2005 06:48:18 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Aug 2005 06:48:20 -0700
X-Trace: forums-1-dub 1124459300 10.22.108.75 (19 Aug 2005 06:48:20 -0700)
X-Original-Trace: 19 Aug 2005 06:48:20 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:4703
Article PK: 17358

Hi,

How rename database file and file log, by command line?

user ASA 9


Reg Domaratzki (iAnywhere Solutions) Posted on 2005-08-19 18:21:28.0Z
From: "Reg Domaratzki \(iAnywhere Solutions\)" <FirstName.LastName@ianywhere.com>
Newsgroups: ianywhere.public.general
References: <4305e320@forums-2-dub>
Subject: Re: Rename database file
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: rdomarat-xp.sybase.com
X-Original-NNTP-Posting-Host: rdomarat-xp.sybase.com
Message-ID: <43062328$1@forums-1-dub>
Date: 19 Aug 2005 11:21:28 -0700
X-Trace: forums-1-dub 1124475688 10.25.99.188 (19 Aug 2005 11:21:28 -0700)
X-Original-Trace: 19 Aug 2005 11:21:28 -0700, rdomarat-xp.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:4704
Article PK: 8496

Assuming the following dbinit command :

dbinit cons.db

The following will rename the database and log file from a command prompt,
assuming that the database file and transaction log are not in use.

rename cons.db new.db
rename cons.log new.log
dblog -t new.log new.db

--
Reg Domaratzki, Sybase iAnywhere Solutions
Sybase Certified Professional - Sybase ASA Developer Version 8
Please reply only to the newsgroup

iAnywhere Developer Community : http://www.ianywhere.com/developer
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
ASA Patches and EBFs : http://downloads.sybase.com/swx/sdmain.stm
-> Choose SQL Anywhere Studio
-> Set "Platform Preview" and "Time Frame" to ALL

"Ivan" <ibmoreno@bol.com.br> wrote in message news:4305e320@forums-2-dub...
> Hi,
>
> How rename database file and file log, by command line?
>
> user ASA 9
>
>