Forum Replies Created

Viewing 15 posts - 5,176 through 5,190 (of 26,490 total)

  • RE: restoring .bak file to new database using T-SQL

    Glad we were finally able to help you with this issue.

  • RE: Are the posted questions getting worse?

    Lynn Pettis (5/18/2015)


    Eirikur Eiriksson (5/18/2015)


    Lynn Pettis (5/18/2015)


    Eirikur Eiriksson (5/18/2015)


    Lynn Pettis (5/18/2015)


    At some point, you have to work with the people in the best position to help.

    Must admire your patience Lynn!

    😎

    What,...

  • RE: restoring .bak file to new database using T-SQL

    briancampbellmcad (5/18/2015)


    Isn't this for a database sored on my local machine? I'm trying to do it on a server based database.

    No when run on the server it will restore a...

  • RE: How to get an year ago date from the particular date

    amar_kaur16 (5/18/2015)


    how can I query this for all the students.

    I have testdate and the yearago date from the testdate with studentid and subject usinfg this query :

    select Studentid, Lname,Fname,testdate, subject...

  • RE: Backup with checksum

    jralston88 (5/18/2015)


    One of the things I was told initially, make sure you backup your databases. And further, make sure your backups are good. After doing some reading -...

  • RE: restoring .bak file to new database using T-SQL

    RESTORE DATABASE BCCrestore

    FROM DISK = 'D:\BCC_DB_backup_201505020017.bak'

    WITH MOVE 'BCC' TO 'D:\Databases\Data\BCCrestore.mdf',

    MOVE 'BCC_log' TO 'D:\Databases\Data\BCCrestore_log.ldf',

    REPLACE,

    STATS = 10;

    GO

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (5/18/2015)


    Lynn Pettis (5/18/2015)


    Eirikur Eiriksson (5/18/2015)


    Lynn Pettis (5/18/2015)


    At some point, you have to work with the people in the best position to help.

    Must admire your patience Lynn!

    😎

    What, me patient?...

  • RE: restoring .bak file to new database using T-SQL

    briancampbellmcad (5/18/2015)


    RESTORE DATABASE BCCrestore

    FROM DISK = 'D:\BCC_DB_backup_201505020017.bak'

    WITH MOVE 'BBC' TO 'D:\Databases\Data\BCCrestore.mdf',

    MOVE 'BBC_log' TO 'D:\Databases\Data\BCCrestore_log.ldf',

    REPLACE,

    STATS = 10;

    GO

    Msg 3234, Level 16, State 2, Line 2

    Logical file 'BBC' is not part of database...

  • RE: restoring .bak file to new database using T-SQL

    The restore command provided should work. I backed up my Sandbox database and restored it as Sandbox5. The following is the command I used:

    USE [master]

    RESTORE DATABASE [Sandbox5]

    FROM ...

  • RE: restoring .bak file to new database using T-SQL

    briancampbellmcad (5/18/2015)


    RESTORE DATABASE BCCrestore

    FROM DISK = 'C:\BCC_DB_backup_201505020017.bak'

    WITH MOVE 'BBC' TO 'D:\Databases\Data\BCCrestore.mdf',

    MOVE 'BBC_log' TO 'D:\Databases\Data\BCCrestore_log.ldf',

    REPLACE,

    STATS =...

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (5/18/2015)


    Lynn Pettis (5/18/2015)


    At some point, you have to work with the people in the best position to help.

    Must admire your patience Lynn!

    😎

    What, me patient? Good thing you...

  • RE: restoring .bak file to new database using T-SQL

    David Webb-CDS (5/18/2015)


    OK, let's try this:

    RESTORE DATABASE BCCrestore

    FROM DISK = 'D:\BCC_DB_backup_201505020017.bak'

    WITH MOVE 'BCC' TO 'D:\Databases\Data\BCCrestore.mdf',

    MOVE 'BCC_log' TO 'D:\Databases\Data\BCCrestore_log.ldf'

    WITH REPLACE;

    GO

    Not quite. This:

    RESTORE DATABASE BCCrestore

    FROM DISK = 'C:\BCC_DB_backup_201505020017.bak'

    WITH MOVE 'BBC'...

  • RE: restoring .bak file to new database using T-SQL

    briancampbellmcad (5/18/2015)


    I want to restore to BCCrestore, not my production database. Are these safe to run?:

    restore headeronly from DISK = 'D:\BCC_DB_backup_201505020017.bak'

    restore filelistonly from DISK = 'D:\BCC_DB_backup_201505020017.bak'

    Yes, these don't restore a...

  • RE: Log File Growth

    ramana3327 (5/18/2015)


    We are using sql server 2008r2

    We have transactional log backup set up for every 15 min.

    We are running default reorg indexes for all tables in one of our production...

  • RE: restoring .bak file to new database using T-SQL

    Run the following and post the results:

    restore headeronly from DISK = 'D:\BCC_DB_backup_201505020017.bak'

    restore filelistonly from DISK = 'D:\BCC_DB_backup_201505020017.bak'

Viewing 15 posts - 5,176 through 5,190 (of 26,490 total)