| |

VerySource

 Forgot password?
 Register
Search
View: 868|Reply: 4

On the same server, how to completely copy a table in library A to library B

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 11:00:01
| Show all posts |Read mode
On the same server, how can I completely copy a table tblrsxx from the A library to the B library.
Reply

Use magic Report

0

Threads

23

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-1-4 11:03:01
| Show all posts
Just use the DTS import wizard.
Note that select "Copy objects and data between SQL Server databases" and "Include extended attributes".
Reply

Use magic Report

0

Threads

93

Posts

46.00

Credits

Newbie

Rank: 1

Credits
46.00

 China

Post time: 2020-1-4 14:09:01
| Show all posts
A library backup, named B library when restoring with backup
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 16:12:01
| Show all posts
Use sql query analyzer, in the "Object Browser" on the left, select the table to copy the format, right-click the table name, and select "write object script in new window-> create"



Add a use B library name before create table ..........

as follows:

use B library name
create table ..........
Reply

Use magic Report

1

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-4 16:36:01
| Show all posts
With the import and export function of DTS, select the third line "Copy objects and data between SQL Server databases" and tick "Include extended attributes".
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list