- Backup DB
- Detach DB
- Rename Log file
- Attach DB
- New log file will be recreated
- Delete Renamed Log file.
Above just is 1 of the way to clear the transaction log file
SQL Tutorial, SQL Server, SQL Statement, SQL Query, MS SQL 2000 Reporting Service, T-SQL, SQL Function, SQL Syntax, SQL User Define Function, SQL Trigger
Above just is 1 of the way to clear the transaction log file
Name | Salary |
emil | 1000 |
rayden | 2000 |
FligtTicket | Price |
Kuala Lumpur | 265 |
Bangkok | 878 |
Col1 | Col2 |
emil | 1000 |
rayden | 2000 |
Kuala Lumpur | 265 |
Bangkok | 878 |
DBCC SQLPERF(logspace) is an absolutely functional command if you are only interested in consumption of your database log files. It provides the cumulative size for each log file for each database on the SQL Server instance as well as the amount of space consumed (as a percentage of total log file size). A drawback is the fact that the results are an aggregate for the database.
logspace can be 1 of the value below:NHibernate can work on these Database
Express Edition Products for SQL Server Compared | |||
Feature | SQL Server 2005 Express Edition | SQL Server 2005 Express Edition with Advanced Services | SQL Server 2005 Express Edition Toolkit |
Database Engine | x | x | |
Client Components | x | x | x |
Full Text Search | x | ||
Reporting Services | x | ||
Management Studio Express | x | x | |
Business Intelligence Developer Studio | x |
Comparation between the SQL Server Database Between:
1. SQL Server 2005 Express EditionLINQ to SQL is an O/RM (object relational mapping) implementation that ships in the .NET Framework "Orcas" release, and which allows you to model a relational database using .NET classes. You can then query the database using LINQ, as well as update/insert/delete data from it.
LINQ to SQL fully supports transactions, views, and stored procedures. It also provides an easy way to integrate data validation and business logic rules into your data model.
Developers can use LINQ with any data source. They can express efficient query behavior in their programming language of choice, optionally transform/shape data query results into whatever format they want, and then easily manipulate the results. LINQ-enabled languages can provide full type-safety and compile-time checking of query expressions, and development tools can provide full intellisense, debugging, and rich refactoring support when writing LINQ code.
LINQ supports a very rich extensibility model that facilitates the creation of very efficient domain-specific operators for data sources. The "Orcas" version of the .NET Framework ships with built-in libraries that enable LINQ support against Objects, XML, and Databases.
For More details about the LINQ :
Part 1: Introduction to LINQ to SQL
Part 2: Defining our Data Model Classes
Part 3: Querying our Database
Part 4: Updating our Database
Part 5: Binding UI using the ASP:LinqDataSource Control
Part 6: Retrieving Data Using Stored Procedures
Part 7: Updating our Database using Stored Procedures
Part 8: Executing Custom SQL Expressions
Part 9: LINQ to SQL (Part 9 - Using a Custom LINQ Expression with the
The DATETIME function’s major change in SQL Server 2008 is the four DATETIME data types introduced. They are DATE, TIME, DATETIMEOFFSET and DATETIME2. IN addition to these newly introduced data types, there are new DATETIME functions all well.
TIME Datatype
DECLARE @dt as DATE
SET @dt = getdate()
SELECT @dt
23:48:04.0570000
The range for the DATE datatype is from 00:00:00.0000000 through 23:59:59.9999999..
DATETIME2 Data Type
DECLARE @dt7 datetime2(7)
SET @dt7 = Getdate()
SELECT @dt7
2007-10-28 22:11:19.7030000
for above example, (7) is the Fraction
Fraction Output
0 2007-10-28 22:11:20
1 2007-10-28 22:11:19.7
2 2007-10-28 22:11:19.70
3 2007-10-28 22:11:19.703
4 2007-10-28 22:11:19.7030
5 2007-10-28 22:11:19.70300
6 2007-10-28 22:11:19.703000
7 2007-10-28 22:11:19.7030000