Viewing 5 posts - 61 through 65 (of 65 total)
I would always like to use the SQL as
Declare @SQL varchar(8000)
select @SQL = 'Select... From .... Where 1=1'
Now Start concatenating your criteria to @SQL
select @SQL = @SQL ...
January 14, 2003 at 11:07 am
Somebody posted this sometimes back. Hope this helps.
DROP PROCEDURE dbo.sp_ServerStatus
go
CREATE PROCEDURE dbo.sp_ServerStatus
/*******************************************************************************
Written By : Simon Sabin
Date :...
December 11, 2002 at 10:41 pm
Try this undocumented sp.
set nocount on
create table #sp_mstablespace (Rows INT, DataSpaceUsed INT, IndexSpaceUsed INT )
Insert into #sp_mstablespace
Exec sp_mstablespace <YourTableName>
select * from #sp_mstablespace
paul
December 11, 2002 at 10:21 pm
Please follow these, it always helps
1. INDENTATION
2. Define all variables at the very top
3. Document history of changes, at the very begining
paul
April 19, 2002 at 5:11 pm
Viewing 5 posts - 61 through 65 (of 65 total)