I follow the answer of Mr. Kin in this post
How to move a database from SQL Server 2012 to SQL Server 2005
I run the query without errors, but when I check my blank database created on SQL Server 2008 R2, there's no change or new added data on my database.
Please help.
Sorry for duplicate post, I don't have enough reputation to comment on the link that I put here. Sorry.
Best Answer
Run below script on the source Server in SSMS with Text output CTRL+T:
In above script change the bcp.exe path to match. I have commented out the schema part in above script as you want to migrate all data from all schemas.
Once you have the script output in TEXT format, open a notepad and paste it in and save it as
.BAT
file.Once saved, run the
.BAT
file by launching theCMD
prompt. This will produce all the.dat
files in the folderD:\BCP_OUT\
<-- change this as per your location.Now you will have all the
.dat
files. These are theBCP OUT
files with data. So run the below script on the destination server. You can copy all the bcp files to the destination server or just use SSMS from the source server to generate the scripts.Make sure you change thebcp.exe
path and thedestination_database_Name
.Above will generate scripts for bulk insert using SSMS set in TEXT MODE as output. Copy the generated script and run it in another window using SSMS.
Hope that helps.