Forum Replies Created

Viewing 15 posts - 3,106 through 3,120 (of 7,191 total)

  • RE: Full backup and remove old log backups

    You don't normally need to consider the LSN. Just to be safe, it's probably best to retain log backups to an hour, say, before the full backup starts. ...

  • RE: Full backup and remove old log backups

    (1) No, because if your full backup fails, you'll be left with nothing

    (2) Yes, that should work. I usually keep 48 hours of transaction logs, though - it gives...

  • RE: Query Help

    Yikes! Yes, of course. Thanks Gail.

    John

  • RE: Query Help

    Something like this?

    create view vw_main

    as

    select colA1, colA2, colA3, colA4, colA5, colB2

    from tableA A inner join tableB B

    on (A.ColA1 = ColB1 AND colA4 = 'case') OR colA4 = 'ifelse'

    John

  • RE: INSERT fails

    Fred

    The answer's in the error message. You've created the column NOT NULL (which it has to be to form part of a primary key constraint) and therefore you have...

  • RE: Is It Worth Writing Unit Tests?

    peter-757102 (7/23/2015)


    John Mitchell-245523 (7/23/2015)


    peter-757102 (7/23/2015)


    Tests can only prove that ** when ** the developer works precise, the implementation does what the developer thinks it should do (which changes as soon...

  • RE: Is It Worth Writing Unit Tests?

    peter-757102 (7/23/2015)


    Tests can only prove that ** when ** the developer works precise, the implementation does what the developer thinks it should do (which changes as soon the system gets...

  • RE: Need login help to send files to

    Are you asking how to connect to the remote server? Use Windows authentication, assuming SQL Server runs under a domain account in the same domain as the remote server...

  • RE: Create new Datatbase from bak file

    Al.Pacca (7/15/2015)


    Then created the new Database vehicles_new

    Yes, although you don't actually need to create the database first - you can just run the RESTORE if the database you're restoring...

  • RE: Create new Datatbase from bak file

    Welcome to the forums! You're trying to restore the new database with the same file names as the existing one, which obviously isn't allowed. Use the WITH MOVE...

  • RE: Calculated time difference column in create table

    OK, for the former, use DATEDIFF. For the latter, look at the CREATE TABLE documentation. Search on that page for "computed_column_expression". Please post back if there's anything...

  • RE: Calculated time difference column in create table

    I would advise you to calculate the time difference in minutes. You can display it as hh:mm in your presentation layer. That said, what is it specifically you...

  • RE: Eliminating repetitive coding.

    Something like this? (Not tested because no table DDL or sample data.)

    CREATE TABLE #BeginDates (

    DateNo tinyint

    SentDate datetime

    )

    INSERT INTO #BeginDates VALUES

    (1, @SentDate2BeginNew)

    ,(2, @SentDate3BeginNew)

    ,(3, @SentDate4BeginNew)

    ,(4, @SentDate5BeginNew)

    ,(5, @SentDate6BeginNew)

    INSERT INTO #SummaryResults (

    ColumnID

    ,ColumnName

    ,SentDate

    ,DataResult

    )

    SELECT

    4

    ,13

    ,b.DateNo

    ,CONVERT(VARCHAR,COUNT(*))

    FROM #BeginDates...

  • RE: SQL Agent job tracking

    No, the timeout is set within the package, not by the sp_start_job stored procedure. How long before it times out - is it long enough for you to run...

  • RE: SQL Agent job tracking

    What's happening when it times out - is it being blocked? What is the blocking process doing?

    John

Viewing 15 posts - 3,106 through 3,120 (of 7,191 total)