Forum Replies Created

Viewing 5 posts - 61 through 65 (of 65 total)

  • RE: Passing variables to the "Where" clause

    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 ...

  • RE: Scripting Linked Servers

    Somebody posted this sometimes back. Hope this helps.

    DROP PROCEDURE dbo.sp_ServerStatus

    go

    CREATE PROCEDURE dbo.sp_ServerStatus

    /*******************************************************************************

    Written By : Simon Sabin

    Date :...

  • RE: Count number of records in a table

    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

  • RE: What rules of thumb you live by when programming?

    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

  • RE: TSM

    I would look at features, that this software supports, which is not supported by SQL Server Backup utility/feature.

    paul

Viewing 5 posts - 61 through 65 (of 65 total)