SQL
MS SQL and .net Development
Pages
(Move to ...)
Home
▼
Monday, November 14, 2011
Difference between TRUNCATE command and DELETE Command
›
There are lots of differences in Delete and Truncate Command. Some are listed below: TRUNCATE is much faster than DELETE. Reason for t...
Saturday, November 12, 2011
The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed
›
If you get this error message in your SQL Server then read on: In "Results to Grid" format one cannot display more than 100 res...
Friday, November 11, 2011
Know space distribution by table
›
We can use sys.dm_db_partition_stats DMV to find out this information select OBJECT_NAME(object_id) as objname , SUM (rese...
Search for Wild Card Characters in a Column
›
First create a table CREATE TABLE Table_1 (CustID int, CustName varchar(35)) go --Now Populat the table with some data DECLARE @iCtr I...
Thursday, November 10, 2011
Delete all Data from all tables in a database
›
Run below query to delete all records from all tables: EXEC sp_MSforeachtable @command1 = “DELETE FROM ?” OR EXEC sp_MSforeachtable...
‹
›
Home
View web version