Mutual Import of SQL Server 2005 and SQL Server 2000 Data

Reprint: http://www.verydemo.com/demo_c155_i9393.html

  Since the introduction of SQL Server 2005, many applications related to SQL Server 2000 need to be upgraded to this version because of better performance. But how to import the table structure and corresponding data and other formats of data into SQL Server 2005 in the fastest and most convenient way? How to import data from SQL Server 2005 to SQL Server 2000? Let's look at the following implementations separately:

  1) Import SQL Server 2000 data into SQL Server 2005

....................................................................

  In this data import process, the issue of SQL Server version is not considered. It is no different from the mutual import of data between different versions, but the interface display is different. Let's look at the second method below.

  2) SQL Server 2005 data is imported into SQL Server 2000

  This method cannot be implemented according to the above import, otherwise an error of different version will be reported. But how to do it? In SQL Server 2005, we right-click in the corresponding database and select "Generate Script" under the "Task" menu, click "Next" two times in a row, and then in the pop-up dialog box, In the box under "Options", find "Script for Server Version", change the following SQL Server 2005 to SQL Server 2000, and then click Next, select the table, if there is a stored procedure, you also need to select the stored procedure, Then click Next, select all stored procedures or tables, then click "Next", and then click "Finish", then all SQL statements will be generated in the new query window, we will copy these statements, and then in the SQL Server 2000 is executed in the query analyzer of the corresponding database, and the corresponding table structure and stored procedure are generated.

  At this time, we will use SQL Server 2000 to right-click in the corresponding database, in "Import Data" corresponding to "All Tasks", enter the name or IP address of the server in SQL Server 2005, and then enter the corresponding server in SQL Server 2000. Name or IP address, and then the default selection to enter "Next", select all tables, and then click two "Next", the data can be imported.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326572446&siteId=291194637