Attaching a database

  • Hi,

    I asked a client to send me a backup of their SQL Server database. I received a .DAT file! Now, I'm not sure what I can do with this. I tried Attaching it to my SQL Server, but got the message that this is not a primary database file.

    Is there anything I can do with this file? Or do I need to tell them to do a backup using the SQL Server Management Studio (or whatever is the equivalent for the version of SQL Server they have)?

    Frank

  • It turns out the .DAT file was actually a backup so restoring it worked. I n=guess older versions of SQL Server created .DAT files instead of .BAK files.

  • When you create a backup, you can give it any extension you want .... which is what they did. It's not because it is an older version.

     


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • Thanks.

  • The .DAT file extension is also the default for SQL 6.5 database and backup files. Probably not a good thing to name your SQL 7/2000 backup files with an extension that was used in a previous version of SQL Server?

  • As Robert mentioned you can give any extesion to it.

    When you get the backup file from some one else, it is always better to run RESTORE HEADERONLY command to check file is sql backup or not?

    MohammedU
    Microsoft SQL Server MVP

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

You must be logged in to reply to this topic. Login to reply