How can I find out the name of the data folder of SQL Server?
From the code, of course.
Thank you.
Printable View
How can I find out the name of the data folder of SQL Server?
From the code, of course.
Thank you.
Have found the answer by myself. :-)
There is a stored procedure of SQL Server "sp_helpdevice". Among the other info it returns real physical path of the master.mdf file.