dbTalk Databases Forums  

How to get filename of running database

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss How to get filename of running database in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AH
 
Posts: n/a

Default How to get filename of running database - 09-23-2009 , 03:45 AM






Hello,

is it possible to get the filename including path from a
running database on a SQL Anywhere 9.0.2? I need the path
from the view of the server.

Kind regards
Andreas

Reply With Quote
  #2  
Old   
Volker Barth
 
Posts: n/a

Default Re: How to get filename of running database - 09-23-2009 , 03:57 AM






Andreas,

use "select db_property('File')".
Note that the file path is always from the server's point of view.
The log's path is available via "select db_property('LogName')"

HTH
Volker

AH wrote:
Quote:
Hello,

is it possible to get the filename including path from a
running database on a SQL Anywhere 9.0.2? I need the path
from the view of the server.

Kind regards
Andreas

Reply With Quote
  #3  
Old   
AH
 
Posts: n/a

Default Re: How to get filename of running database - 09-23-2009 , 04:22 AM



Hello Volker,

it works, thank you.

Andreas

Quote:
Andreas,

use "select db_property('File')".
Note that the file path is always from the server's point
of view. The log's path is available via "select
db_property('LogName')"

HTH
Volker

AH wrote:
Hello,

is it possible to get the filename including path from a
running database on a SQL Anywhere 9.0.2? I need the
path from the view of the server.

Kind regards
Andreas

Reply With Quote
  #4  
Old   
Ontsnapt
 
Posts: n/a

Default Re: How to get filename of running database - 09-28-2009 , 01:16 AM



To have the picture complete it would be nice to also have the name of
the server.

Is this possible?

Thanks
Eric

Volker Barth schreef:
Quote:
Andreas,

use "select db_property('File')".
Note that the file path is always from the server's point of view.
The log's path is available via "select db_property('LogName')"

HTH
Volker

AH wrote:
Hello,

is it possible to get the filename including path from a
running database on a SQL Anywhere 9.0.2? I need the path
from the view of the server.

Kind regards
Andreas

Reply With Quote
  #5  
Old   
Volker Barth
 
Posts: n/a

Default Re: How to get filename of running database - 09-28-2009 , 02:57 AM



Then use
select property('Name'), property('MachineName')
-> this will give you both the database server name (as used in
connection strings in the ENG param) and the name of the box the db
server is running on.

There are a lot of other senseful server-, database- and
connection-level properties.

HTH
Volker


Ontsnapt wrote:
Quote:
To have the picture complete it would be nice to also have the name of
the server.

Is this possible?

Thanks
Eric

Volker Barth schreef:
Andreas,

use "select db_property('File')".
Note that the file path is always from the server's point of view.
The log's path is available via "select db_property('LogName')"

HTH
Volker

AH wrote:
Hello,

is it possible to get the filename including path from a
running database on a SQL Anywhere 9.0.2? I need the path
from the view of the server.

Kind regards
Andreas

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.