Viewing 15 posts - 481 through 495 (of 607 total)
DBCC SHOW_STATISTICS(N'[dbo].[StgVendItem]', N'XIE1StgVendItem')
WITH STATS_STREAM
January 16, 2013 at 3:15 am
Executing the query "EXECUTE master.dbo.xp_create_subdir N'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\BDSBPM' " failed with the following error: "Cannot create a file when that file already exists."
January 15, 2013 at 7:23 am
Michael Valentine Jones (1/14/2013)
The sp_updatestats stored procedure is smart enough to only rebuild stats when needed, so you should be able to run it fairly often.
I have been badly burnt...
January 15, 2013 at 7:21 am
I would definitely build clustered indexes on 1GB+ heap tables and would seriously consider applying compression to those indexes.
January 9, 2013 at 3:21 am
L' Eomot Inversé (12/28/2012)
Sean Pearce (12/28/2012)
gkganeshbe (12/26/2012)
How to deallocate the unused pages?
As mentioned in the reference URL you can either use the TABLOCK hint, use TRUNCATE TABLE or...
December 28, 2012 at 11:57 pm
Hugo Kornelis (12/26/2012)
Thanks for a good question, Sean. I think I once read or heard that after deleting all rows...
December 28, 2012 at 12:41 am
This is what Books Online says:
Creating a PRIMARY KEY or UNIQUE constraint automatically creates a unique index on the specified columns. There are no significant differences between creating a UNIQUE...
December 20, 2012 at 1:26 am
Thanks for the kind words, a real compliment from professionals in my industry.
December 14, 2012 at 5:27 am
arthi.anan (12/13/2012)
Thanks all....My database name is Serv and I have 150 tables and 200 procedures...
How would i give it in this query...
Can u please make me clear
IF EXISTS (SELECT *...
December 14, 2012 at 5:23 am
create table #temp (customer varchar(15),number int)
insert into #temp select'A',1
insert into #temp select'B',1
insert into #temp select'C',1
insert into #temp select'D',1
drop table #temp
What is the expected results of selecting 25% of the above?
December 13, 2012 at 4:28 am
Have you updated stats? You have some serious under-estimations with the large table.
Clustered Index Seek
[DS_GreensDK].[DCL].[CompanyToken].[ix_CL_DCL_CompanyToken]
Estimated Number Of Rows : 309
Actual Number Of Rows : 13,807,291
December 12, 2012 at 5:26 am
SQL_Kills (12/11/2012)
Sorry what is the above meant to be saying to me?
December 11, 2012 at 12:05 pm
Eugene Elutin (12/11/2012)
Sean Pearce (12/11/2012)
ALTER PROCEDURE [dbo].[usp_delete]@tablename sysname,
@pid int,
@pidname varchar(10)
AS
DECLARE @sql NVARCHAR(MAX),
@params NVARCHAR(MAX);
SELECT@sql = 'DELETE FROM [' + @tablename + '] WHERE ' +...
December 11, 2012 at 7:15 am
Viewing 15 posts - 481 through 495 (of 607 total)