Viewing 14 posts - 46 through 59 (of 59 total)
David,
Weird stuff with your code - it prints out a table NOT in the SP.
Also, it DOES print tables from another DB - could this be because they are in...
December 31, 2008 at 8:14 am
Jesse,
Shouldn't (HasPrimarykey=0 OR HasClusteredIndex=0) be
(HasPrimarykey=0 AND HasClusteredIndex=0) ?
Doug
December 5, 2008 at 8:07 am
Tim,
Why use LIKE if you are not adding % - shouldn't you just say = instead then?
Doug
December 3, 2008 at 12:18 pm
Hey,
This didn't work for me until I added a % at the end of the first dynamic SQL statement:
SELECT @sql = CASE
December 3, 2008 at 8:54 am
Jesse,
I lost the link to this topic - do you have the URL of your script?
Thanx,
Doug
November 10, 2008 at 8:53 am
YeshuaAgapao ,
Good Deal - did you fix my mistake - count( index_id) As Indicies should be (COUNT( index_id ) - 1 ) As Indicies.
Best,
Doug
November 5, 2008 at 8:01 am
Jesse,
Another great article.
You could make one little add to this - return the number of Indicies for the table by adding
COUNT( index_id ) As Indicies,
to your inner join where you...
October 30, 2008 at 6:44 am
Adam,
He had it on his site - #18
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
GO
CREATE FUNCTION dbo.udf_SQL_DataTypeString (
@BaseDataType nvarchar(128) -- base name like int,...
October 27, 2008 at 8:49 am
Nice -
IF OBJECT_ID('dbo.Util_ListIndexes_Columns', 'P') IS NOT NULL
BEGIN
DROP PROCEDURE dbo.Util_ListIndexes_Columns
END
is a bit more compact 😉
October 9, 2008 at 1:07 pm
Jesse,
That script is not rerunnable - try this for your existence check.
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[SP_Name]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
BEGIN
DROP PROCEDURE...
October 9, 2008 at 6:18 am
The whole package was about $15k - which included hauling out the old system, the oil tank, reworking the ducts, hiring a drill to drill 480ft down and hooking everything...
November 2, 2007 at 11:33 am
Grant and Steve,
I switched my heating and cooling over to geothermal about 5 years ago - I have already paid back my investment! Besides heating and cooling my house, I...
November 2, 2007 at 9:09 am
Viewing 14 posts - 46 through 59 (of 59 total)