ldf & mdf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sudipta
    New Member
    • Sep 2006
    • 1

    ldf & mdf

    what are ldf and mdf files
    and how and when are they created?
  • ramasp
    New Member
    • Sep 2006
    • 19

    #2
    mdf is the extension of primary file.
    ldf is the extension of transaction log file.
    whenever u create a database, u have to name the above fiels.
    Generally their location path is c:\programfiles \microsoft sql server\mssql\lo gs

    Comment

    • vinod
      New Member
      • Aug 2006
      • 40

      #3
      .mdf is the default extension name of datafile.
      .ldf is the default extension name of log file.

      Comment

      • martinroldan
        New Member
        • Nov 2006
        • 4

        #4
        Ok, thanks I also needed to know what those files are, but what can I do if I only have them, I mean I have a file called asdb.mdf and another called asdb_log.ldf; how can I get the DB from them?
        Martin

        Comment

        • BISHOP33
          New Member
          • Feb 2007
          • 5

          #5
          .MDF and .LDF are usually associated with SQL. In order to view the data you will need SQL Server. The .MDF file is the primary file.

          Comment

          • martinroldan
            New Member
            • Nov 2006
            • 4

            #6
            Yes, I know that, I have SQL Server 2005, but how can I upload these files?
            Martin

            Comment

            • BISHOP33
              New Member
              • Feb 2007
              • 5

              #7
              You need to attach the database to the default instance. (SQL Server) Once attached, you can view the tables or data in that .mdf file.

              Comment

              Working...