SQL Server

How to find the SQL Server Version with a query ?

Few days back , i had to find the SQL Server Version on one of the Machine and here’s a query that i used or executed in the SQL Server Management Studio to find out the version of the SQL Server . Select @@version The @@version will return “Microsoft SQL Server 2008 R2 (RTM) – 10.50.1617.0 (X64)   Apr 22 2011 19:23:43   Copyright (c) Microsoft Corporation  Express Edition with Advanced Servi Read More....

1 comment - What do you think?
Posted by Senthil Kumar - October 15, 2011 at 12:54 pm

Categories: SQL Server   Tags: , ,

How to reset the value of identity Column in SQL Server ?

Here’s a way to reset the value of the identity column in SQL Server . The scenario is explained below . For example , when the table “Customers” has a identity column with the initial value of 1 and seed 1 .Each time when you start an App and perform an operation , you might want to delete  all the records inside the table and perform the new inserts . ( Not the best of the methods , but the Ap Read More....

1 comment - What do you think?
Posted by Senthil Kumar - June 13, 2011 at 10:32 pm

Categories: SQL Server, Tools   Tags: , , ,

Restoring SQL Server 2008 R2 Backup file to SQL Server 2008

Recently i had to restore a SQL Server 2008 R2 Database to a Database in another machine and i ended up getting the message "The Database was backed up on a server running version 10.50.1600. That version is incompatible with this server, which is running 10.00.1600" . Then when exploring the cause of the reason ,i found that the database that i took

Read more...

5 comments - What do you think?
Posted by Senthil Kumar - October 10, 2010 at 9:58 pm

Categories: .NET, SQL Server, Visual Studio 2010   Tags: , , , , , , ,

SQL Server 2008 – Change Edit Top 200 Rows and Select Top 1000 Rows to Select/Edit All

Have you noticed the Context Menu , when you right click on the table in the SQL Server Management Studio Express 2008 . The SQL Server Management Studio Express 2005 allows us to “Edit” or “View” the entire records in a table. You might see the following options in the SQL Server Management Studio Express 2008 . 1. Select Top 1000 Rows 2. Edit Top 200 Rows

Read more...

20 comments - What do you think?
Posted by Senthil Kumar - September 13, 2010 at 8:20 pm

Categories: .NET, SQL Server   Tags: , , , ,

© 2011-2012 Senthil Kumar's Blog This is my personal blog .The opinions expressed here represent my own and not those of my employer . All Rights Reserved -- Copyright notice by Blog Copyright