My application uses Entity Framework 4 to access a SQL Anywhere 12.0.1 database. I need a query that will tell me what the name of the database file on disk, including the drive letter.
How do I get the database path from the database itself?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I figured it out. This query will retrieve the path of the file that the current database is stored in:
SELECT file_name FROM SYSDBFILE WHERE dbfile_name = ‘system’