![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to know the datafile and log file for the given input parameter. I am basically creating function and the input parameter would be database name and that will return me DataFile and the LogFile. Can anybody tell me which query I have to used in the function. I have to used to get the DataFile and LogFile |
#3
| |||
| |||
|
|
Have a look at the sys.database_files catalog view in BOL. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:OsKzR7QiHHA.5008 (AT) TK2MSFTNGP02 (DOT) phx.gbl... I want to know the datafile and log file for the given input parameter. I am basically creating function and the input parameter would be database name and that will return me DataFile and the LogFile. Can anybody tell me which query I have to used in the function. I have to used to get the DataFile and LogFile |
#4
| |||
| |||
|
|
In SQL Server 2000? |
![]() |
| Thread Tools | |
| Display Modes | |
| |