SQL Server databases use two files – an MDF file, known as the primary database file, which contains the schema and data, and a LDF file, which contains the logs. See wikipedia. A database may also use secondary database file, which normally uses a .ndf extension.
As John S. indicates, these file extensions are purely convention – you can use whatever you want, although I can’t think of a good reason to do that.
More info on MSDN here and in Beginning SQL Server 2005 Administation (Google Books) here.
Related Posts:
- Self Join to get employee manager name
- Attach (open) mdf file database with SQL Server Management Studio
- The ALTER TABLE statement conflicted with the FOREIGN KEY constraint
- The backend version is not supported to design database diagrams or tables
- Solutions for INSERT OR UPDATE on SQL Server
- “select * into table” Will it work for inserting data into existing table
- What is the difference between “INNER JOIN” and “OUTER JOIN”?
- Selecting COUNT(*) with DISTINCT
- Case in Select Statement
- What is a stored procedure?
- ORA-00904: invalid identifier
- How do I UPDATE from a SELECT in SQL Server?
- Conversion failed when converting date and/or time from character string while inserting datetime
- When should I use CROSS APPLY over INNER JOIN?
- Insert Data Into Temp Table with Query
- error, string or binary data would be truncated when trying to insert
- How can I do an UPDATE statement with JOIN in SQL Server?
- Must declare the scalar variable
- Rename column SQL Server 2008
- Why do we need “Relationships” between tables at all?
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- Case statement in MySQL
- Drop a temporary table if it exists
- How do I escape a single quote in SQL Server?
- How Stuff and ‘For Xml Path’ work in SQL Server?
- IDENTITY_INSERT is set to OFF – How to turn it ON?
- Update statement to update multiple rows
- Inserting data into a temporary table
- Why does NULL = NULL evaluate to false in SQL server
- Import / Export database with SQL Server Server Management Studio
- CREATE VIEW must be the only statement in the batch
- SQL Server FOR EACH Loop
- Best way to do nested case statement logic in SQL Server
- The multi-part identifier could not be bound
- Get day of week in SQL Server 2005/2008
- Each GROUP BY expression must contain at least one column that is not an outer reference
- incorrect syntax error CREATE VIEW must be the only statement in the batch
- how to drop partition without dropping data in MySQL?
- How can I truncate a datetime in SQL Server?
- SQL Server Insert if not exists
- SQL Server: Invalid Column Name
- What is it exactly a BLOB in a DBMS context
- How to parse XML data in SQL server table
- SQL Server IF NOT EXISTS Usage?
- String or binary data would be truncated. The statement has been terminated
- Error converting data type varchar to float
- How to concatenate text from multiple rows into a single text string in SQL Server
- How do you create a yes/no boolean field in SQL server?
- Count(*) vs Count(1) – SQL Server
- What is the Oracle equivalent of SQL Server’s IsNull() function?
- I want to use CASE statement to update some records in sql server 2005
- Simulate CREATE DATABASE IF NOT EXISTS for PostgreSQL?
- Determine ROW that caused “unexpected end of file” error in BULK INSERT?
- SELECT DISTINCT on one column
- Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 4 (Year)
- TSQL PIVOT MULTIPLE COLUMNS
- Postgres Error: More than one row returned by a subquery used as an expression
- Microsoft OLE DB Provider for SQL Server error ‘80004005’
- Difference between database and schema
- How do I reset a sequence in Oracle?
- SQL “select where not in subquery” returns no results
- ListAGG in SQLSERVER
- Equivalent of Oracle’s RowID in SQL Server
- Is there a Max function in SQL Server that takes two values like Math.Max in .NET?
- Regex pattern inside SQL Replace function?
- Subtract one day from datetime
- MySQL equivalent of DECODE function in Oracle
- what is the difference between triggers, assertions and checks (in database)
- Is it possible to specify condition in Count()?
- Errors: “INSERT EXEC statement cannot be nested.” and “Cannot use the ROLLBACK statement within an INSERT-EXEC statement.” How to solve this?
- Replacing NULL with 0 in a SQL server query
- SQL Server dynamic PIVOT query?
- SQL Server: Make all UPPER case to Proper Case/Title Case
- How do I query for all dates greater than a certain date in SQL Server?
- Backup a single table with its data from a database in sql server 2008
- How to write a foreach in SQL Server?
- Error converting data type varchar
- Conditional JOIN Statement SQL Server
- Temporary table in SQL server causing ‘ There is already an object named’ error
- I want to use CASE statement to update some records in sql server 2005
- SQL Server “cannot perform an aggregate function on an expression containing an aggregate or a subquery”, but Sybase can
- Get everything after and before certain character in SQL Server
- Cannot create an instance of OLE DB provider Microsoft.Jet.OLEDB.4.0 for linked server null
- How to calculate age (in years) based on Date of Birth and getDate()
- ORDER BY items must appear in the select list if SELECT DISTINCT is specified
- Text was truncated or one or more characters had no match in the target code page including the primary key in an unpivot
- How can I group by date time column without taking time into consideration
- What datatype should be used for storing phone numbers in SQL Server 2005?
- What are database constraints?
- Inner Joining three tables
- Append table to an existing one: SQL Server
- SQL Server – An expression of non-boolean type specified in a context where a condition is expected, near ‘RETURN’
- SUM OVER PARTITION BY
- Filter data based on date in sql
- Update query using Subquery in Sql Server
- Varchar invalid for Sum operator
- What is a file based database?
- “The transaction log for database is full due to ‘LOG_BACKUP'” in a shared host
- Cannot insert explicit value for identity column in table ‘table’ when IDENTITY_INSERT is set to OFF