Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: How to Compute Actual Space Used In Datafiles

    /*

    I MADE MY WORK FOR DATABASE THAT HAS ANY NUMBER OF DATA OR LOG FILES

    */

    SET QUOTED_IDENTIFIER ON

    set nocount on

     

    DECLARE @dbsize     decimal,

     @dbmaxsize     decimal,

     @DatabaseSize nvarchar(100),

     @DatabaseName CURSOR,

     @dbname nvarchar(100),

     @SQLString nvarchar(500),

            @MyEmailMessage varchar(500),

            @dbfilename varchar(100)

    CREATE TABLE...

  • RE: How to Compute Actual Space Used In Datafiles

    I have wrote some thing like this

    /*

    script 1

    */

    SET QUOTED_IDENTIFIER ON

    set nocount on

    DECLARE

    @dbsize int,

    @dbmaxsize

    int,

    @DatabaseSize...

  • RE: Free disk space on all servers?

    Const HARD_DISK = 3

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:" _

    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

    Set colDisks = objWMIService.ExecQuery _

    ("SELECT * FROM Win32_LogicalDisk...

Viewing 3 posts - 1 through 3 (of 3 total)