Viewing 15 posts - 1 through 15 (of 36 total)
R Barry Young's procedure fails if any databases have conflicting collations. Report Server databases have Latin1_General_CI_AS_KS_WS collations, whereas the default collation is often SQL_Latin1_General_CP1_CI_AS.
February 19, 2016 at 11:36 am
Since the SQL Server Surface Area configuration tool is deprecated for SQL 2008 and later, you need to enable OPENROWSET and OPENDATASOURCE as below:
sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'Ad Hoc Distributed...
June 9, 2015 at 4:38 pm
I'm consulting at a company with a developer-designed database which has a very large table (over 2 billion rows) that has a number of small char or varchar categorical columns....
October 4, 2013 at 4:37 pm
Hi all,
I borrowed the guts of what Timothy Parker did and created a version that works on one database only, so there is no outer cursor loop. I also...
December 20, 2012 at 2:33 pm
This should do it for you.
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[uspDropStatsOnColumn]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[uspDropStatsOnColumn]
go
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
create procedure [dbo].[uspDropStatsOnColumn](
...
December 8, 2010 at 1:26 pm
I like this better:
declare @bntTotalRowsScanned bigint
select @bntTotalRowsScanned = sum(i.rowcnt * u.user_scans)
from sys.dm_db_index_usage_stats as u
inner joinsys.sysobjects as o on u.object_id = o.id and o.xtype = 'U'
inner joinsys.sysindexes as i on u.index_id...
November 2, 2010 at 12:24 pm
Michael,
Very slick! Thank you!
Jeff
September 21, 2010 at 11:56 am
Gail,
What you wrote was my prior understanding. I opened a case with MS which went on for weeks. Our procedure cache was being filled with different plans for the same...
August 13, 2010 at 12:50 am
You can also get multiple copies if the sproc does conditional logic within. Depending on the branch taken, different plans result.
August 12, 2010 at 11:28 pm
FWIW, 2005 Standard Edition (and also 2008, I believe) does permit up to three partitions. We have been using it in production for several years with no problems. However, Microsoft...
June 7, 2010 at 2:47 pm
Excellent article. I have run into all of these things.
Another poor practice is using bloated datatypes. On a large database, using the smallest reasonable integer, date, and money types...
February 10, 2010 at 1:05 pm
Has anyone implemented this in production? If so, could you share your experience? Any tips or tricks or gotcha's?
Thanks in advance.
January 18, 2010 at 11:09 am
I believe this will produce errors on tables with existing data.
From BOL on DBCC CHECKIDENT:
DBCC CHECKIDENT ( 'table_name', RESEED, new_reseed_value )
Current identity value is set to the new_reseed_value. If no...
December 23, 2009 at 3:22 pm
Great article. I apologize for my rude English-speaking compatriots. You seem to speak French natively, and I very much appreciate your writing the article in English, because I sure don't...
December 10, 2009 at 6:17 pm
I had been working as a management consultant traveling every week, and wanted to stay home with my young children. Although I have a Stanford Ph.D., I had taken only...
December 8, 2009 at 2:52 pm
Viewing 15 posts - 1 through 15 (of 36 total)