Import SQL Server data to a DAT file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gauthambr83
    New Member
    • Feb 2008
    • 8

    Import SQL Server data to a DAT file

    Hi all,

    I want to know how to import SQL Server(2005) data into a DAT file. Can anyone help me on this.
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Originally posted by gauthambr83
    Hi all,

    I want to know how to import SQL Server(2005) data into a DAT file. Can anyone help me on this.
    Do you want to import a dat file into SQL server or export data from a sql database to a .dat file?

    a .Dat file is generally a csv file, and that can be produced using Sql Server (I dont think it is possible to do it with Sql Server Express)

    in the import options choose a flat file for import/export depending upon your need

    Comment

    • gauthambr83
      New Member
      • Feb 2008
      • 8

      #3
      Sorry! I want to export sql server data into a DAT file.

      Comment

      • Shashi Sadasivan
        Recognized Expert Top Contributor
        • Aug 2007
        • 1435

        #4
        In SQl Server management studio, right click the database
        and choose Tasks -> Export data

        choose the source data and select the database from which you want to export any tables

        in the next windows which is the destination
        instead of SQl Native client choose flat file Destination
        put in a filename .dat

        this file will be in the format of a csv file

        follow the steps and you should be able to export it

        Comment

        • gauthambr83
          New Member
          • Feb 2008
          • 8

          #5
          Originally posted by Shashi Sadasivan
          In SQl Server management studio, right click the database
          and choose Tasks -> Export data

          choose the source data and select the database from which you want to export any tables

          in the next windows which is the destination
          instead of SQl Native client choose flat file Destination
          put in a filename .dat

          this file will be in the format of a csv file

          follow the steps and you should be able to export it
          Hi Shashi,

          Job done, thanks for your help.

          Comment

          Working...