For more information about the default file locations, see File Locations for Default and Named Instances of SQL Server. DECLARE @data_path nvarchar(256); SET @data_path = (SELECT SUBSTRING(physical_name, 1, CHARINDEX(N'master.mdf', LOWER(physical_name ...
↧