Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolunBu tarayıcı artık desteklenmiyor.
En son özelliklerden, güvenlik güncelleştirmelerinden ve teknik destekten faydalanmak için Microsoft Edge’e yükseltin.
Applies to:
SQL Server - Windows only
The best practice for protecting your data files and log files is to ensure that they are protected by access control lists (ACLs). Set the ACLs on the directory root under which the files are created.
Not
These instructions are for SQL Server on Windows only. To change the default locations for SQL Server on Linux, see Configure SQL Server on Linux with the mssql-conf tool.
In Object Explorer, right-click on your server and select Properties.
In the left panel on that Properties page, select the Database settings tab.
In Database default locations, view the current default locations for new data files and new log files. To change a default location, enter a new default pathname in the Data or Log field, or select the browse button to find and select a pathname.
After changing the default locations, you must stop and start the SQL Server service to complete the change.
Dikkat
The following example uses an extended stored procedure to modify the server registry. Serious problems might occur if you modify the registry incorrectly. These problems might require you to reinstall the operating system. Microsoft cannot guarantee that these problems can be resolved. Modify the registry at your own risk.
Connect to the Database Engine.
From the Standard bar, select New Query.
Copy and paste the following example into the query window. Replace the <path_*>
values with the new locations you wish to place your data and log files, and then select Execute.
USE [master];
GO
EXEC xp_instance_regwrite
N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'BackupDirectory',
REG_SZ,
N'<path_to_database_backup_files>'
GO
EXEC xp_instance_regwrite
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'DefaultData',
REG_SZ,
N'<path_to_data_files>'
GO
EXEC xp_instance_regwrite
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'DefaultLog',
REG_SZ,
N'<path_to_log_files>'
GO
After changing the default locations, you must stop and start the SQL Server service to complete the change.
Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolunEğitim
Modül
SQL Server kaynaklarını en iyi performans için yapılandırma - Training
SQL Server kaynaklarını en iyi performans için yapılandırma
Sertifikasyon
Microsoft Sertifikalı: Azure Veritabanı Yöneticisi Uzmanlık - Certifications
Microsoft PaaS ilişkisel veritabanı tekliflerini kullanarak bulut, şirket içi ve karma ilişkisel veritabanları için SQL Server veritabanı altyapısını yönetme.
Belgeler
Veritabanları oluşturma veya disk dosyası konumlarını değiştirme - SQL Server
Bu makalede, SQL Server'ın ilk olarak yüklenmediği paylaşılan bir küme sürücüsünde veritabanı oluşturma veya disk dosyası konumlarını değiştirme işlemleri açıklanır.
SQL Server yedekleme ve geri yükleme işlemi sorunları - SQL Server
Bu makalede, işlemin uzun sürmesi ve farklı SQL Server sürümleri arasındaki sorunlar gibi SQL Server yedekleme ve geri yükleme işlemi sorunları giderilir.
Sıkıştırılmış birimlerdeki veritabanları için destek - SQL Server
Bu makalede, SQL Server'ın sıkıştırılmış sürücülerde veritabanı dosya depolama davranışı açıklanmaktadır.