I do not want the dbname of the database I want the logical name. This can be obtained using the FileList only command. However I would like this to be done in a select statement if possible.
are you confusing database name with the logical names of the datafiles?
Thank you eyechart, I found the following code on a MSDN site
USE <Database name> GO SELECT FILE_NAME(1) AS 'File Name 1', FILE_NAME(2) AS 'File Name 2'; GO
quote:Originally posted by eyechart
quote:Originally posted by navmiester
I do not want the dbname of the database I want the logical name. This can be obtained using the FileList only command. However I would like this to be done in a select statement if possible.
are you confusing database name with the logical names of the datafiles?