on 03-27-2012 10:55 AM
Hai Experts ,
I need to known , What is MDF and log_ldf file and when it is created. Can we delete the file since it occupies more space.
If we delete thet MDF and Log_ldf file , it cause any problem in the database .
Regards
Daya............
Hi Daya,
Please check the below threads for similar discussion.
http://scn.sap.com/thread/1816931
http://scn.sap.com/thread/1594147
Regards,
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sriram,
You can take the backup of these files rather than go for deleting I guess. Please check the below thread for shrinking a transactional log file.
http://scn.sap.com/thread/1862414
Regards,
Raghu
Hi Sriram,
Also go through the below SAP Note
http://service.sap.com/sap/support/notes/1402580
http://service.sap.com/sap/support/notes/1274803
The above note contains a word file attached which explains the steps to Shrink a Log file.
Regards,
Raghu
Hi Sriram,
On top of other recommendations, I'd suggest to contact your IT department and ask for assistance with SQL Server maintenance.
Regards,
Akim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can reduce space occupied by datafiles and transaction log using some DB features like "shrink".
Take a look at this note for more information on how to accomplish this task:
363018: File management for SQL Server
Regards
Leo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sriram,
MDF are the primary data file in a File Group. These files contain "data" - so your tables, indexes, keys, constraints, UDF, UDT, stored procs, functions, etc...LDF files are your transactions
SQL Server databases have three types of files:
The primary data file is the starting point of the database and points to the other files in the database. Every database has one primary data file. The recommended file name extension for primary data files is .mdf.
Secondary data files make up all the data files, other than the primary data file. Some databases may not have any secondary data files, while others have several secondary data files. The recommended file name extension for secondary data files is .ndf.
Log files hold all the log information that is used to recover the database. There must be at least one log file for each database, although there can be more than one. The recommended file name extension for log files is .ldf.
SQL Server does not enforce the .mdf, .ndf, and .ldf file name extensions, but these extensions help you identify the different kinds of files and their use.
In SQL Server, the locations of all the files in a database are recorded in the primary file of the database and in the master database
Hope it helps!
Thanks,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sriram,
.mdf are the primary database file, so if you delete this file you will loose your DB and destroys your appset, if you want to delete an appset it's better to use BPC admin console because there are several components to be free, .ldf are the transaction log, i.e. the log file when you select the full recovery model or bulk-logged recovery model. To delete these files see
ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_1devconc/html/f60f020a-8cad-435e-bd92-114b805ea3dd.htm
To reduce the space compress DB using the BPC full optimize with compression option and you can delete old logs but it's better to ask to a BASIS.
Kind regards
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.