Forum Replies Created

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

  • RE: how to check size of database

    The function filerproperty(filename, property) can tell how much space is allocated to a specific file

    example:

    select name, fileproperty(name,'spaceused') as allocated,

       case fileproperty(name,'IsLogFile')

          when 0 then 'Data'

          else 'LOG'

       end as...

  • RE: Getting Max Value from list

    Maybe you're looking for something like this ?

    Create Function MaxFromList (@String nvarchar(4000), @delimiter varchar(1) = ',')

    returns nvarchar(255)

    AS

    Begin

       declare @Datalength int

       declare @CurrentPosition int

       declare @NextPosition int

       declare @ThisTable table(Value nvarchar(255))

      ...

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