I have .DAT file (data file of SQL server database) someone suggested me to use BCP utility to upload the data into a newly created SQL server database.
Does anyone have any documentation for using the BCP utility?
the bcp utility is for loading data from text files to sql server. i dont think you can use it to upload a .dat file. If you have all of the dat files for the old database, including master.dat you can do a new install of sql server and copy all of the dat files to the correct directories, owerwriting the .dat files created by the install, although this method is not officially recommended by microsoft i have done it successfully.
I couldnt say whether bcp will do what your asking, I've only used it for text files, but there's a comprehensive document on how to use it that you can download from the microsoft web site
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.