Restoring .dat file into SQL server 2005

  • I cannot restore my old database from SQL server 2000 into SQL server 2005 which is a .dat file.

    I had tried with the MOVE command also.How can i restore the .dat into SQL server 2005. Please help me....

  • .dat?

    That's not a standard SQL file exention. Is it a backup? How did you ceate the .dat file?

    Also, what have you tried and what have the results been?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I am running a small software development company..In one of my current projects i got the database as .dat file from the client, but now am using SQL server 2005 and i want all the data from the .dat file.

    How can i restore it into SQL server 2005.

  • 1st tell me where you got this file...;):P:):cool::hehe::w00t:

    and do you have windows media player or not????:D:w00t::hehe::cool::):cool:

    Cheers!

    Sandy.

    --

  • shameersinbox (7/22/2008)


    How can i restore it into SQL server 2005.

    Without knowing how it was created, no idea. Please ask your client where the file came from and what app they used to create it.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Just out of curiosity I asked my friend google about .dat files. Check out http://www.fileinfo.net/extension/dat for a general discription. Basically, a DAT file can be anything from a standard CSV (comma delimited data-file) to a proprietary binary file. From my own experience, I have seen .dat files (and .data files, used interchangeable) be used to store sets of class objects from specific applications, to images, to full in-house low-level databases. My guess is that yours is the third.

    Hope this helps you understand why everyone wants to know where this file came from! Good luck!:)

  • Open up the .dat file in Textpad,

    It may contain SQL scripts to create the required databse objects that you can apply to your database. Check that the scripts are safe to run and run them against your dev server.

    Or it may contain table data in a delimmted form that you can import in SQL server.

    Either way have a look at the contents of the file to see what to do.

  • Gail is right. It's really difficult to know what to do if the source of the file is unknown. :w00t:

    Since it is a *.dat file, it's not likely to be a SQL Server Backup, but it could be since SQL does not "require" a backup extension for the file (even though it makes it easier :D)

    As suggested earlier, I would try opening the file in notepad or wordpad. A dat file might also be something from Excel for all we know. In any case, it is unlikely to be a database that someone just detached and forwarded along for you to attach to your server.

    You might suggest to whomever sent you the file to try taking a backup of the database, assuming one exists, and send you that file to work with the data.

    Good luck!

    Regards, Irish 

  • DAT files are created on old version of sql 6.5

Viewing 9 posts - 1 through 8 (of 8 total)

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