Can DatabaseMetaData return physical file names for MS SQL db?

Dear Experts,

I'm trying to return the physical file names of MS SQL data and log files.  (Like "C:\MyDir\MyData.mdf").  Someone suggested using SYSALTFILES, but it requires extra authority.  Does anyone know if it's possible through DatabaseMetaData, or some other way throught JDBC?

Thanks!
BrianMc1958
BrianMc1958Asked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.