Forum Replies Created

Viewing 15 posts - 196 through 210 (of 608 total)

  • RE: Transaction Log Issues

    Thanks Lynn..

    the results:

    2013-05-15 12:14:17.000 2013-05-15 12:23:18.000

    2013-05-15 19:17:23.000 2013-05-15 19:36:35.000

    2013-05-16 15:15:36.000 2013-05-16 15:35:51.000

    2013-05-17 19:19:32.000 2013-05-17 19:37:31.000

    2013-05-20 19:18:11.000 2013-05-20 19:36:09.000

    2013-05-21 10:12:09.000 2013-05-21 10:21:17.000

    2013-05-21 19:19:15.000 2013-05-21 19:37:12.000

    2013-05-22 19:17:05.000 2013-05-22 19:35:28.000

    2013-05-23 19:18:45.000 2013-05-23 19:36:47.000

    2013-05-24...

  • RE: Transaction Log Issues

    declare @dbname sysname

    set @dbname = db_name()

    print @dbname

    select backup_start_date,backup_finish_date,

    from msdb..backupset

    where database_name = @dbname and type = 'D'

    Msg 156, Level 15, State 1, Line 5

    Incorrect syntax near the keyword 'from'.

  • RE: Transaction Log Issues

    This tells us you need to start running t-log backups at a minimum. You also need to get with your network people (or who ever works with your backup software)...

  • RE: Transaction Log Issues

    Lynn,

    results:

    LOG_BACKUP

    Pretty sure it's because the Unitrends software is not working as it should. But I'm stuck with the UNitrends device to backup out servers.

    So my thought was that I would...

  • RE: Transaction Log Issues

    Okay given my scenario...

    should I run this first:

    BACKUP LOG <database_name> WITH TRUNCATE_ONLY;

    every night (scheduled), then do a full backup?

    I'm concerned with space..

  • RE: remove last character and reformat date

    Thanks Sean! Worked great.

    Yeah I know about the (no lock)...the vender has these all over the place..

    crazy I know..

    Thanks everybody for helping!

  • RE: remove last character and reformat date

    I ran the statement:

    SELECT*

    FROMpearhist

    WHEREISDATE(LEFT(pehPErcontrol,8)) = 0

    And got zero records

  • RE: remove last character and reformat date

    Umm... I don't think there's a chance. But I wouldn't bet my life on it..

    They are all dates, but with an extra character on the end.

    If I change the...

  • RE: remove last character and reformat date

    changed it to datetime and got:

    Conversion failed when converting datetime from character string

    cast(left('pehPErcontrol',8) as datetime),

  • RE: remove last character and reformat date

    thanks Phil

    I get a:

    Type date is not a defined system type error

    Here's the code:

    cast(left('pehPErcontrol',8) as date),

  • RE: syntax stumped

    Awesome thanks guys! Much appreciated.

  • RE: Trying to fire this off, but only if there are results...

    Perfect!

    Thanks Lowell. You are the man.

  • RE: Quick and Easy way to email results - if any

    found a way...thanks anyway guys..

    IF (select count(*) from [e009]) > 0

    begin

    exec msdb.dbo.sp_send_dbmail

    @profile_name = 'Default',

    @recipients = 'me@example.com',

    @subject = 'warning',

    @query = 'select * from [e009]',

    @attach_query_result_as_file = 1,

    @query_attachment_filename = 'warning.csv'

    end

  • RE: Specific user account access only

    lol...never is that easy..

    thanks man, that's just what I was looking for..

  • RE: Trouble with log shipping. Reporting Server.

    Guessing it kick out my users if they are in the middle of running a report?

    If so, that would be bad.

    Do I have any other options for my senario?

Viewing 15 posts - 196 through 210 (of 608 total)