Forum Replies Created

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

  • RE: SA password change

    --you can track pwd changes using trace,such as

    declare @on bit,@p1 int

    select @on = 1

    set @P1=1

    exec sp_trace_create @P1 output, 1, NULL, NULL, NULL

    exec master..sp_trace_setevent @p1, 107, 1, @on -- textdata

    exec master..sp_trace_setevent...

  • RE: shrink logs

    The script below will solve your problem,it runs for bot sql 7.0 an sql 2000.

    -- Caution : database compatibility level must be 7.0 or higher ..

    dbcc shrinkfile ( [Logical Log...

  • RE: shrink logs

    The script below will solve your problem,it runs for bot sql 7.0 an sql 2000.

    -- Caution : database compatibility level must be 7.0 or higher ..

    dbcc shrinkfile ( [Logical Log...

  • RE: Looking for useful scripts to aid development

    declare @tablename varchar (128)

    select @tablename = 'TableName'

    declare @tableid int,@columnpointer ...

  • RE: Transaction log not clearing out

    replace <logname> with log name of the db

    and <dbname> with dbname.

    if its okey i explain it later.

    declare @logname varchar(128)

    dbcc shrinkfile ( <logname>, truncateonly )

    backup log <dbname> with truncate_only

    GO

    if exists...

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