Forum Replies Created

Viewing 15 posts - 6,016 through 6,030 (of 6,678 total)

  • RE: xp_delete_file and other vendors

    I seem to remember getting that error on an older version. I ended up using the SSMS plug in, setting it up for the deletion I wanted and then...

  • RE: Deriving historical data from status changes

    SELECT ...

    FROM table1 t1

    LEFT JOIN table1 t2 ON t2.key = t1.key AND t2.ID_SET_STATUS_TYPE = 3

    WHERE t1.ID_SET_STATUS_TYPE = 1;

    Need to identify the key column(s) for...

  • RE: Deleting old backup files

    DEL D:\backup\data\SPProd_Cfg _10-19-2008.bak

    The above has a space following Cfg. Don't know what else I can say other than the command you have posted has that space in it which...

  • RE: Multiple sumations - at present we perform them sequentially

    Davroche (10/21/2008)


    Thank you Jeffrey. I have used your solution in a number of my queries. How can I change the folowing codes to relate to the current month? ...

  • RE: Urgent, this script runs in a view and takes too long ,

    Okay, I think I know where the problem is - however, you are going to have to determine how to fix it. The easiest way to find the problem...

  • RE: Deleting old backup files

    You have a space after Cfg and before the underscore which is causing the command to fail. Remove the extra space and it should work.

  • RE: RESTORE FAILING

    Yeah, doesn't sound like simple is going to work. And yes, you need to truncate the transaction log before it will shrink. When you perform a transaction log...

  • RE: RESTORE FAILING

    Okay, the transaction log on the source system needs to be managed. To start, what is the recovery model for that database? And, how often are you backing...

  • RE: RESTORE FAILING

    How large is the transaction log on the system where you took the backup? Not only do you need space for the database (*.mdf), but you need space for...

  • RE: xp_delete_file and other vendors

    For Litespeed, you can either use 'xp_procedure' or 'xp_slssqlmaint'. I use 'xp_slssqlmaint' and set it up as:

    Execute master.dbo.xp_slssqlmaint '-MAINTDEL -DELFOLDER "%backupDirectory%%database% -DELEXTENSION "%extension%" -DELUNIT "%minutes%" -DELUNITTYPE "minutes" -DELUSEAGE';

    Replace the...

  • RE: Regarding Index

    You can create a non-clustered index on the column(s) you want indexed. You don't need to drop the clustered index.

  • RE: Multiple sumations - at present we perform them sequentially

    This is a simple group by query:

    Select cpp.Service

    ,Sum(cpp.PhaseValue -(cpp.PhaseIPT + cpp.Supplier1Charge + cpp.Supplier2Charge)) As Total

    From yourTable cpp

    Where CPP.PhaseStartDate >=...

  • RE: Transaction Log a part of Full backup????

    nilmov (10/19/2008)


    i slightly differ on that...if it is full logged and your disk is getting full, shrink is the option left. Not regularly but when have a downtime try...

  • RE: How to Schedule a SQL Trace ?

    Perry Whittle (10/18/2008)


    use the following to start, stop and close the trace

    (must stop a trace before it can be closed. Must be closed before you can access the file)

    Just to...

  • RE: DBCC CHECKDB - how use it in a maintenance plan ?

    Leo (10/19/2008)


    Hi Gila,

    Sorry, I get back to you a bit late. I am not fully understanding about Transaction Log. Let say I switched my DB Model to 'SIMPLE'. I don't...

Viewing 15 posts - 6,016 through 6,030 (of 6,678 total)